Genie Discord forum

Author Avatarwerner castro
8/15/2023, 8:27:59 PM

Is there a different way to run debug on genie ?

Author Avatarwerner castro
8/15/2023, 9:11:31 PM

Changed the channel name: debug not working in genie

Author AvatarPere
8/16/2023, 8:00:10 AM

what do you mean by "run debug"?

Author Avatarwerner castro
8/16/2023, 11:00:20 AM

when I try to run genie in debug mode with this configuration file:

{ "version": "0.2.0", "configurations" : { "type": "julia", "request": "launch", "name": "Run Server", "program": "${workspaceFolder}/bootstrap.jl", "stopOnEntry": false, "cwd": "${workspaceFolder}", "juliaEnv": "${command:activeJuliaEnvironment}" } }

You are having this error:

Ocorreu uma exceção: InvalidStateException InvalidStateException: Channel is closed.

Author AvatarGenerallyClueless
8/16/2023, 1:00:18 PM

I'm not sure how well traditional debugging, with breakpoints, etc.. would work.

Author AvatarGenerallyClueless
8/16/2023, 1:02:49 PM

Genie can use the macro @show to basically print variables to the REPL

Author AvatarGenerallyClueless
8/16/2023, 1:04:29 PM

I'm not a GUI developer.. but javascript debugging like console.log() might help too... and inspecting elements with a browser also 🤔

Author Avatarwerner castro
8/16/2023, 1:05:23 PM

In version 4, I sent the request via postman and analyzed the breakpoints, but in this version I can't do it anymore

Author AvatarGenerallyClueless
8/16/2023, 1:06:22 PM

🤔 interesting. Unfortunately it's beyond my ability.. for the time being.

Author AvatarPere
8/17/2023, 10:14:04 PM

Not sure how to look into this, as it seems the debugger in VSCodd might be causing the issue