Page 1 of 1

macOS - Debugger not working?

Posted: Mon Jul 07, 2025 9:18 am
by PaulS
I'm new to SpiderBasic and I'm working on getting familiar with SpiderBasic.
SpiderBasic is running on a MacBook Pro with a M3 processor with macOS Seqouia 15.5.

One thing that I like to do is to debug while running and see what is happening.
Debugger is enabled in the settings.
When I Compile/Run or Compile with Debugger the application is run without stopping at a breakpoint.
I have tried to set a breakpoint at various positions in the source code but the debugger is never activated.
Am I doing something wrong or is this a known problem?

Re: macOS - Debugger not working?

Posted: Mon Jul 07, 2025 9:48 am
by Fred
The debugger is very scarse for SpiderBasic, you can't set breakpoint yet. It can catch runtime errors and display debug output directly in the IDE which is helpful, but if you want to do step by step, you can do it using the safari debugger (you can add a 'CallDebugger' somewhere, and if the devtools of the browser are opened, it will stop and let you use the debugger)

Re: macOS - Debugger not working?

Posted: Mon Jul 07, 2025 11:04 am
by PaulS
If the debugger isn't working properly it should be disabled in the menus so the debugger can't be used.
I don't want to be rude, but to be honest it's very confusing and annoying for me when the debugger doesn't work.
For me that's a bit of a dealbreaker. A good debugger is mandatory for me. A good debugger saves me a lot of time when tracing where things go wrong or examining if the the flow of an app is working in the correct order.

Re: macOS - Debugger not working?

Posted: Mon Jul 07, 2025 11:56 am
by Fred
There is a debugger, so I don't see why it should be disabled in the menu. Breakpoints and step by step are not supported from the IDE, as it's using a custom WebView which makes it difficult to plug one. I will remove the breakpoints in the IDE as you're right, it can be confusing.