Debugger wont stop at breakpoints in static methods.

Hi, I'm trying to debug and all the breakpoints I place inside static methods are just ignored. I know the program goes throught those points because if I place traces they do display, however breakpoints are just being ignored.

Any configuration I should set?.

10 comments
Comment actions Permalink

Hello.

Is that Java code? Should work.

For example, main() method is static. Do breakpoints work there?

Also specify please your IDEA version and/or build.

Regards,
Alexander.

0
Comment actions Permalink

I'm using IDEA with AS3, my version is 13.1.4.

Not sure if this matters or not, but the static class is inside a library.

0
Comment actions Permalink

IntelliJ IDEA supports more than a dozen of debuggers for different languages and technologies and each debugger has its own implementation.
In case of ActionScript debugging there can be a lot of reasons why something is not working. Some issues are caused by the underlying fdb tool from the Flex SDK and can't be fixed at IDE side. Some issues are caused by incorrect project configuration. Sample project that reproduces the issue would be the best to dig into your case.

0
Comment actions Permalink

What exactly do you mean by sample project?, is this an IDEA term?.

0
Comment actions Permalink

I mean IntelliJ IDEA project that I can use to reproduce the issue

0
Comment actions Permalink

The project is kind of big, I will try to reduce it the best I can.

One thing I remembered, not sure if it would help or not, is that when I'm debuggin and I place a breakpoint (and it works) I see a little ok-like icon inside, or an x if for example I place the breakpoint in a place that the code has no code. However, when I place a breakpoint in any of the static methods, nothing happens, no ok nor x.

0
Comment actions Permalink

SWC library could be compiled without debug info, in this case it is impossible to set breakpoints in its code.

0
Comment actions Permalink

Yeah, but it's not a SWC library, but a raw actionscript library.

0
Comment actions Permalink

Alright, I just figured that it had nothing to do with static methods, but with the fact that they are in a library. Why is that?.

0
Comment actions Permalink

That's a bug. I've filed it in our issue tracker and fixed: https://youtrack.jetbrains.com/issue/IDEA-131721
Thanks for reporting!

0

Please sign in to leave a comment.