Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: 51423benam on August 24, 2018, 07:52:37 pm

Title: Can't find pretty printing setting in C::B
Post by: 51423benam on August 24, 2018, 07:52:37 pm
Hello,

I want to enable pretty printing in CodeBlocks. It already works in the console. I follow http://wiki.codeblocks.org/index.php/Pretty_Printers (http://wiki.codeblocks.org/index.php/Pretty_Printers). But the problem is, I can't find the setting 'Codeblocks->Settings->Debugger->Default->Enable Watch Scripts'. Here it looks like https://pasteboard.co/HAGEzsF.png. Do you know why there is no such setting in my C::B?
Title: Re: Can't find pretty printing setting in C::B
Post by: BlueHazzard on August 25, 2018, 10:17:16 am
Quote
    Disable Codeblocks handling of watch values:

    Codeblocks->Settings->Debugger->Default->Enable Watch Scripts = Unchecked
You have to disable this setting. In the newer codeblocks versions this setting was removed.

Sadly i can not log in to the wiki to correct this...

If it works in the console and you have set the correct startup should also work in codeblocks
Title: Re: Can't find pretty printing setting in C::B
Post by: 51423benam on August 25, 2018, 07:19:56 pm
Where should I be able to see it? If I open Codeblocks, break somewhere and watch a vector, it says "<No data fields>".
Title: Re: Can't find pretty printing setting in C::B
Post by: BlueHazzard on August 25, 2018, 09:17:09 pm
Does the vector contains data?

To help you more you have to post a debugger log.
For this enable full debugger logging in Settings->Debigger->Common->Enable full log (or something like this)

And then run to your breakpoint, add the desiderate variable and copy the log from the debugger tab from the bottom in code tags here.

You can also try to type in the text field below the debugger log "p VARIABLENAME" and look if the output in the log is correct...

I hope i described the procedure so you can understand, if not ask!

greetings
Title: Re: Can't find pretty printing setting in C::B
Post by: oBFusCATed on August 26, 2018, 10:45:00 pm
Wiki page edited.