I had wanted to properly debug a module that was giving me issues, but when I went to test I noticed that my breakpoints were not firing even though the code was executing.
It turns out that a breakpoint within a module will not be triggered if the module gets required from the console either through the studio command bar or through the in-game console.
Replication Steps:
- Create a module with a function
- Add a print statement below a breakpoint
- Require the module while running through the console to invoke the function
- Witness no breakpoint get triggered and print statement get ran
Expected behavior
Ideally the breakpoint should be triggered when it gets invoked through the console. I did test it through a normal script and the breakpoint halted the execution as intended.
A private message is associated with this bug report