What happens if I forget a bugger

Asked

Viewed 68 times

1

I have a question, when I do debugging sometimes I forget to take the breakpoint, but what happens if I forget and my project goes into production? I think as are breakpoints of ide nothing will happen, but what if for example in the language javascript who put the debugger; in code even, when the client is using something will happen? or will continue the normal execution of the program ?

  • 5

    production code should go without debug option, a release version, so it should not affect anything, besides, breakpoints are IDE’s thing and do not go in compiled code, so do not worry about them. now writing a Debugger command and sending the code is already a serious mistake, this should not go into production ever

  • 4

    in c# you can use the directive #if DEBUG, that will execute something only if it is executed in debug, in java I don’t know, but send a debugger in the javascript is a problem

  • Oh yes, I just wanted to take this question really, sometimes I use the Debugger, but I always withdraw afterwards, thank you

  • 1

    I also left a Bugger there, this is from the "who ever" series:-D

  • Kkkkk I for now never, started not long, and hope never leave

1 answer

1


For the customer, during use will be transparent unless he accesses the Browser Development Tool while loading the screen.

In this case, execution shall be paused for each debugger; there is but nothing else.

In my current scenario I already needed to publish the application with debugger; (javascript) because the problem occurred only on a specific machine. The debugger; is there to this day :)

  • 1

    Remembering that this depends on browser to browser. Indeed, in Chrome Debugger is only called when Devtools is open.

  • But in this case, only one person is using the page or several?

  • Several people use simultaneously.

  • @vnbrs interesting, didn’t know. Could I give an example of the browser that pauses even outside of Devtools? So I already test my application too.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.