Simple xojo web app, starts, breaks to debugger immediately

I started on a web app, not very adept yet at xojo web. But I added a few pages. I have a tool bar, similar to the example. It was all working.

Not sure what I changed but now starting the app causes it to just break in the debugger (running on MacOS) no page is displayed in chrome. It simply lists the app, runtime, threads etc. The left side says “Event loop”. No other info.

I tried putting an unhandled exception handler in app but it is not getting hit.

How do I figure out what is wrong?

Ok… well it seems that somehow graffiti firewall is occupying the debug port. Changed it to different one and it now seems to work… Not sure how to kill graffiti firewall…

Just change the debug port in the shared settings.

GraffitiFirewall doesn’t listen on any ports, and isn’t a standalone application. If you’re running two web projects simultaneously on the same debug port, though, you’ll experience exactly this issue.

Related issue.

2 Likes

Yeah… this was my bad… I had run GF firewall and closed the webpage but didn’t quit the actual app. Still learning here…

Still, it would be nice if Xojo made it show a message in the messages pane telling you that the server socket couldn’t start and what the error was if it knows.

Like this?

1 Like

Assuming that’s the error he’s getting

1 Like

It was, but I neglected to look there.

As I try to learn xojo web I have about 10 projects open not only from the examples but from Graffiti that I bought for this project. For desktop apps I usually enable the auto-quit so quitting the app shuts things down.

The paradigm is different for web apps in that you can close the webpage in say chrome or safari, but that of course does not stop the project. When I looked at Graffiti Firewall, I did just that. I shutdown the webpage but did not kill the running app and it does not really show up as a running app in Mac dock.

Been developing for 40 years and still learning new things. LOL

2 Likes

You aren’t the only one. It also happens to me after using Xojo for more than 15 years.

I opened this feedback case to make those errors easier to catch in a future update:
https://tracker.xojo.com/xojoinc/xojo/-/issues/79064

2 Likes