paulo-fernando-silva / vscOctaveDebugger

MIT License
35 stars 4 forks source link

Plots close as soon as running the code, is there any way to stop this without adding lines at end of code #58

Closed nikhilCad closed 2 years ago

nikhilCad commented 2 years ago

Readme suggests

    h = figure();
    plot();
    % ...
    waitfor(h);

or while(waitforbuttonpress()==0) pause(1) end this

Is there any way the extension can make plots not close without adding any additional codes in the file?

paulo-fernando-silva commented 2 years ago

Have you tried the Interactive Mode? You can check that section in the readme. Basically add "autoTerminate": false, "octaveArguments": [ "--interactive" ] to your launch configuration. The only issue is that after your script exits, octave will also stop debugging. Let me know if that works for your use case.

paulo-fernando-silva commented 2 years ago

Closing. Please reopen if the problem persists.