Breakpoints do not trigger in modules when invoked via console

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:

  1. Create a module with a function
  2. Add a print statement below a breakpoint
  3. Require the module while running through the console to invoke the function
  4. 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