[Fixed] Debugger Fails on Breakpoints in Forms

We have an odd one…

In the Demo app that we built, the debugger works fine for breakpoints defined in modules, but not in forms.

We’ve tried stripping each dependency and component out of the app to see when it would start working. We got all the way down to a single startup form and nothing else - the debugger still refused to startup on a breakpoint in that form.

We tried creating a new app and adding the content of the demo app piece by piece until the debugger stopped working, but it never did.

We tried cloning the demo app - the debugger still refused.

We tried git cloning the demo app to a local machine and force pushing over a new app at anvil - the debugger still refused.

It’s definitely something we’ve done in the demo app itself, but we’re at a loss to narrow it down and put together an MWE.

Here’s the app at github:

And an anvil clone link:

2 Likes

If an MWE isn’t on the cards, could I at least request a smaller working example? Eg a branch in the GH repo of the super-cut-down version that still demonstrates the issue?

I’ll see what I can do…

Yeap - found the bug moved to bug reports

There’s a simple issue with how we compare filenames to python identifiers on the client

Somewhere we had the line:

filename.repace("/", ".")

And in javascript - that just replaces the first occurrence of a “/” :man_facepalming:
We’ll get that fixed.

So I suspect if all your forms only had one level of nesting it would work fine (and that’s presumably what you had in your MWEs)
But your project has all forms two levels deep.

2 Likes

Wow. I’d never have found that!

The forms in the MWEs we made were indeed all at the top level but, even when we stripped the demo app down to a single form, we kept it in its folders.

Nice catch.

3 Likes

Was this the issue I was having for my application:

I know we talked a bit via pm but never got a solution. This would be GREAT!!! You never want something more than when you can’t have it LOL.

1 Like

Fantastic! Many thanks for this one.

2 Likes