Ask Your Question
1

huge bytes at 0x7

asked 2022-05-05 06:06:35 -0500

savager1's avatar

updated 2022-05-05 06:45:32 -0500

Hi,

I was wondering if there was a way to see whilst debugging the contents of a byte array.

Using a competitors IDE, it shows the value of the byte array, however, in wing IDE it shows "huge bytes at 0x7..."

I am hoping to see the byte value? i.e. b'\x....'

Any idea on how to show the value whilst debugging ?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
1

answered 2022-05-05 06:45:15 -0500

The best way to do this is to this is in the Debug Probe, which is available in Wing Pro. That's a Python shell that runs everything in the context of the current debug stack frame so you can inspect any part or all of the value.

You may also want to increase the Debugger > Data Display > Huge List Threshold preference to allow seeing the value in Stack Data. If it's below that configured length threshold then you can expand the value to see the integer value of each byte. Those can be hexadecimal if desired by setting the Debugger > Integer Display Mode preference.

You can also enter an expression like b[:50] into the Watch tool to see part of the value, as long as the threshold is below the Huge List Threshold preference value.

All that said, I was surprised in trying this that we don't show the first part in b'x...' form and think that's a bug, which we'll try to fix soon. The only way I could get that was in the Debug Probe. Right-clicking on the value in Stack Data and selecting Show as Text should also be showing the b'x...' form and not what it currently shows. And View as Array (also by right-clicking) is not showing anything at all for me, which is also wrong. Once fixed, that will be able to show values of any size without performance problems since it incrementally loads the value. Thanks for reporting these issues.

edit flag offensive delete link more
1

answered 2022-05-05 07:31:25 -0500

savager1's avatar

updated 2022-05-05 07:43:16 -0500

thank you very much for the support.

In this instance yes, just seeing the first part of the byte array is helpful, as I can then see which script I need to run, it's a bit of a mess at the moment and could be better I'm sure.

It's pretty cool to have direct contact with the devs like this and they are quite responsive, thank you.

note: you've now made me curious and I'll think I'll try the pro version out :) note2: just checked out the pro version, ah yes, that's exactly what I was after in the 'Debug Console' and in the context of the current debug stack frame - would also be nice to see though as you point out in the stack data showing the b'x...'.

edit flag offensive delete link more

Comments

I highly recommend pro version, it's great. In general Wing IDE is great, regardless of the version ;)

KhazAkar's avatar KhazAkar  ( 2022-05-05 07:35:07 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2022-05-05 06:06:35 -0500

Seen: 49 times

Last updated: May 05