First time here? Check out the FAQ!
1

huge bytes at 0x7

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 ?

savager1's avatar
23
savager1
asked 2022-05-05 06:06:35 -0500
Wingware Support's avatar
4.1k
Wingware Support
updated 2022-05-05 06:45:32 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

1

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...'.

savager1's avatar
23
savager1
answered 2022-05-05 07:31:25 -0500, updated 2022-05-05 07:43:16 -0500
edit flag offensive 0 remove flag delete link

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
add a comment see more comments
1

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.

Wingware Support's avatar
4.1k
Wingware Support
answered 2022-05-05 06:45:15 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer