Debugger font change

Share your advanced PureBasic knowledge/code with the community.
User avatar
Olliv
Enthusiast
Enthusiast
Posts: 542
Joined: Tue Sep 22, 2009 10:41 pm

Debugger font change

Post by Olliv »

Sometimes I prefer the debugger aligns the characters output as the IDE does... So :

Code: Select all

For I = 0 To 3
X.U = I << 14
Debug PeekS(@X, 1, #PB_Unicode)
Debug "Hello !"
Debug "1234567"
Next
Simple way :

Code: Select all

Define U.U = $3000
Debug PeekS(@U, 1)
Back to normal font :

Code: Select all

Define U.U = $80
Debug PeekS(@U, 1)
User avatar
STARGÅTE
Addict
Addict
Posts: 2084
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: Debugger font change

Post by STARGÅTE »

:?:
I don't understand your code.
Hello !
1234567
䀀
Hello !
1234567
耀
Hello !
1234567
쀀
Hello !
1234567
What do you mean with "Back to normal font :"?
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
firace
Addict
Addict
Posts: 900
Joined: Wed Nov 09, 2011 8:58 am

Re: Debugger font change

Post by firace »

Did you post the wrong snippet?
I fail to see how a Peek command can change anything, let alone a debugger font.
User avatar
kenmo
Addict
Addict
Posts: 1967
Joined: Tue Dec 23, 2003 3:54 am

Re: Debugger font change

Post by kenmo »

Olliv, well, it "works" but it depends on your OS, language settings, font settings, etc :)

On Windows (at least with my setup) when you write out high-value Unicode chars the OS automatically changes it to a (monospace) font which can handle them. It's been discussed on the forum before, usually as a question/complaint, not as a trick to intentionally change the font.

(I didn't know it was possible to switch back though, interesting!)

If you want a proper monospace font just change the Debugger Font setting! :D
Olli
Addict
Addict
Posts: 1071
Joined: Wed May 27, 2020 12:26 pm

Re: Debugger font change

Post by Olli »

I profite this post to tell you I just registered as "Olli" being done that "Olliv" profile got false passwords.

Also I apologized if a subject about debugger character encoding was jumped to write this subject. If you have a link, I am interested.
Post Reply