OCamlPro / superbol-studio-oss

Open-Source part of SuperBOL Studio, including the Visual Studio Code extension and its LSP server
https://superbol.eu
Other
19 stars 11 forks source link

Debugging nestcall #303

Open proteomis opened 3 weeks ago

proteomis commented 3 weeks ago

Hello, it does not seem possible to debug inside nested programs

For example, in the following program, if you put breakpoints inside "myentry1" or "myentry2", the program is executed but the breakpoints are never reached. ` $set sourceformat"free" identification division. program-id. test-calls.

   procedure division.
   call "myentry1"
   display "Retour d'entry 1"
   call "myentry2"
   display "Retour d'entry 2"
   goback.

   program-id. myentry1.
   procedure division.
   display "Appel de myentry1"
   goback.
   end program myentry1.

   program-id. myentry2.
   procedure division.
   display "Appel de myentry2"
   goback.
   end program myentry2.

   end program test-calls.

*>**`

The only possibilty left to debug inside "myentry1" or "myentry2" is to create new source files "myentry1.cbl" or "myentry2.cbl", suppress the source code from the original source file and paste them in the new source files.

Regards.

GitMensch commented 3 weeks ago

Please: