Author Topic: Is there a way to edit the .bas program while stepping thru it using vWatch?  (Read 303 times)

Is there a way to edit the .bas program while stepping thru it using vWatch?

Marked as best answer by Raptor88 on April 21, 2019, 12:06:53 AM

Offline FellippeHeitor

  • QB64 Developer
  • LET IT = BE
    • QB64.org
Hello. Short answer: no.

Lil' longer answer: QB64 isn't an interpreted language, which means programs must be compiled first in order to be run. What vWATCH does is inject its own routines into your program so that it can communicate at runtime and be controlled by vWATCH.

The closest you'll get to editing a running program is to change variables' values at runtime. You do so by going to Variable View (either by clicking the button or by hitting F6) and double-clicking a variable you'd like to change the value of. That allows you to check whether a wrong value is what is causing your program to fail.

More about what you can do with variables here: https://www.qb64.org/vwatch/variable-view/

Hope to have helped.

Hello. Short answer: no.

Lil' longer answer: QB64 isn't an interpreted language, which means programs must be compiled first in order to be run. What vWATCH does is inject its own routines into your program so that it can communicate at runtime and be controlled by vWATCH.

The closest you'll get to editing a running program is to change variables' values at runtime. You do so by going to Variable View (either by clicking the button or by hitting F6) and double-clicking a variable you'd like to change the value of. That allows you to check whether a wrong value is what is causing your program to fail.

More about what you can do with variables here: https://www.qb64.org/vwatch/variable-view/

Hope to have helped.

Hi Fellippe,

First, thank you for your previous post in another thread where you provided a link to the compiled version of vWatch.  I used that link to download a working copy of vWatch. 

Second, thank you for your youtube tutorial on how to use vWatch.  It was very, very helpful to learn how to use vWatch.

And now third, thanks for confirming that it's not possible to edit a .bas program while stepping thru it using vWatch.  And how one can change the value of a variable while stepping with vWatch.

All very, very helpful info for using vWatch and I would have strugged a ton more without all of your posted info.
Thanks!,
Raptor88
« Last Edit: April 20, 2019, 09:25:16 PM by Raptor88 »

Offline FellippeHeitor

  • QB64 Developer
  • LET IT = BE
    • QB64.org
You're very welcome! I thank you for your interest :-)