xsharp.eu • table field values in debugger?
Page 1 of 1

table field values in debugger?

Posted: Mon Oct 26, 2020 7:11 pm
by kevclark64
Is there a way to view the field values of an open table in the debugger? For example, if I have an open table called masterlist and I want to see the value of the lastname field of the current record, it would be convenient to put masterlist.lastname in the debugger to view the value. Is there a way to do something like that?

table field values in debugger?

Posted: Tue Oct 27, 2020 8:49 am
by Chris
Hi Kevin,

It is possible, but it is still a little clumsy right now. You can type in the immediate window:

XSharp.RuntimeState.Workareas.CurrentWorkarea

and you will get info about the currently active table. You can view fields (by number) with

XSharp.RuntimeState.Workareas.CurrentWorkarea.GetField(1)

This is just a temporary workaround to do this, in the near future there will be a propel visual browser for viewing open tables while debugging. Rumor has it that it will be looking something like this :)

table field values in debugger?

Posted: Tue Oct 27, 2020 11:23 am
by ic2
Hello Chris,
Chris wrote: This is just a temporary workaround to do this, in the near future there will be a propel visual browser for viewing open tables while debugging. Rumor has it that it will be looking something like this :)
In VS? Wow, that would be a huge improvement. One of the multiple steps back of VS versus VO is the almost unusable Immediate WIndow against VO's Ctrl X & database info during debug. If that would work for database inspection like your rumor upload this would already be great.

Is there also a solution planned running X# functions without having to guess which capitalization has to be used?


Dick

table field values in debugger?

Posted: Tue Oct 27, 2020 12:03 pm
by Chris
Hi Dick,

In X#, you do not need to type the functions with the "correct" casing, the compiler finds them out anyway (unless you have explicitly told it not to, with a compiler options). In case you are talking about using X# functions from c#, in this case you'd need to talk to the people that develop this language :)

Yeah, the rumor I posted is heard more and more from various sources, so it's most likely a fact ;)

table field values in debugger?

Posted: Tue Oct 27, 2020 2:53 pm
by kevclark64
A browser would be great. I often use complex SQL statements which would make it difficult to reference fields by number, but an integrated browser would be perfect.

table field values in debugger?

Posted: Tue Oct 27, 2020 3:28 pm
by Chris
Hi Kevin,

We just had a team discussion about this, within the Virtual Fox Fest 2020 X# booth, and Robert had a very nice idea on how to implement this quickly enough. If there's no unexpected show stopper, I think this will be available in the next X# release.