Forum > Debugger
FPDebug: value of a Variant
Martin_fr:
Casting to "pchar" gives the full string... I have to dig down why ^char does not.
SymbolicFrank:
Thanks! Casting vstring to a PChar in the inspector works.
I tried adding the value converter, but that doesn't seems to work, so I probably did it wrong (see attachments).
Btw, removing an option gave an error that the list was out of bounds.
Martin_fr:
The setup looks correct.
It's not the latest version of Lazarus, but it should still work.
Which version of dwarf to you use?
And which version of FPC?
OS and bitness?
Also can you just test, if you enter the variant directly? like "myvar.fitems[11].myvalue" ?
(it should work in the structure too, but just narrowing things down)
SymbolicFrank:
I use Dwarf with sets. I tend to select Dwarf 3 for new projects. Dwarf 3 gives an error: The function stopped unexpectedly.
Lazarus is version 2.3.0, FPC is 3.3.1. Windows 10, 64-bit.
Martin_fr:
--- Quote from: SymbolicFrank on December 07, 2022, 10:52:53 am ---I use Dwarf with sets. I tend to select Dwarf 3 for new projects. Dwarf 3 gives an error: The function stopped unexpectedly.
--- End quote ---
This is odd. The Dwarf version shouldn't affect that.
I am myself on Win10 64bit. And I just tested (with 3.3.1 updated yesterday) with both (Dwarf3 and 2+sets) and it worked.
Btw, with which options was your FPC build?
- optimization level?
- debug info?
Btw, did you update your Lazarus since your post on December 05, 2022, 02:22:32 pm?
Because in that image, the option dialog is missing the "Run all threads while evaluating" checkbox. Which if you have it defaults to off, and should be off. But if you don't, it will be on.
And it's not just the running off threads. The entire function eval had lots of work done. So you do want to test with the latest 2.3 Lazarus.
If you have that checkbox, and the "function stopped unexpectedly" error still happen:
Please run Lazarus with the following option, and when the error arises provide the log file. (Clear the logfile between runs of Lazarus, or it grows very large)
--- Code: Text [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} -----debug-log=somelogfile.txt --debug-enable=DBGMI_QUEUE_DEBUG,DBG_VERBOSE,DBG_WARNINGS,DBG_ERRORS,DBG_VERBOSE_BRKPOINT,DBG_STATE,DBG_EVENTS,DBG_BREAKPOINTS,DBG_FPDEBUG_VERBOSE,FPDBG_BREAKPOINT_ERRORS,FPDBG_BREAKPOINTS,FPDBG_COMMANDS,FPDBG_THREADS,FPDBG_QUEUE,FPDBG_FUNCCALL,FPDBG_WINDOWS
Navigation
[0] Message Index
[#] Next page
[*] Previous page