Author Topic: Can't find pretty printing setting in C::B  (Read 567 times)

Offline 51423benam

  • Single posting newcomer
  • *
  • Posts: 6
Can't find pretty printing setting in C::B
« 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. 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?

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2060
Re: Can't find pretty printing setting in C::B
« Reply #1 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

Offline 51423benam

  • Single posting newcomer
  • *
  • Posts: 6
Re: Can't find pretty printing setting in C::B
« Reply #2 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>".

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2060
Re: Can't find pretty printing setting in C::B
« Reply #3 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 11188
    • Travis build status
Re: Can't find pretty printing setting in C::B
« Reply #4 on: August 26, 2018, 10:45:00 pm »
Wiki page edited.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]