macOS - Debugger not working?

Everything else that doesn't fall into one of the other categories.
PaulS
Posts: 2
Joined: Sun Jul 06, 2025 11:11 am

macOS - Debugger not working?

Post 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?
Fred
Site Admin
Posts: 1820
Joined: Mon Feb 24, 2014 10:51 am

Re: macOS - Debugger not working?

Post 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)
PaulS
Posts: 2
Joined: Sun Jul 06, 2025 11:11 am

Re: macOS - Debugger not working?

Post 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.
Fred
Site Admin
Posts: 1820
Joined: Mon Feb 24, 2014 10:51 am

Re: macOS - Debugger not working?

Post 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.
Post Reply