What is the difference between "Run As Android Application" and "Debug As Android Application"?

StackOverflow https://stackoverflow.com/questions/22901965

  •  28-06-2023
  •  | 
  •  

Title says all. If you right-click on the folder in the project explorer and go to Run As and Debug As, what would be the difference?

有帮助吗?

解决方案

Debug mode allows code debugging: halt on breakpoints, variable inspection, line-by-line code execution, whereas Run mode doesn't allow this.

其他提示

When you're debugging, Eclipse will stop at breakpoints and allow other debugging actions (view running threads, etc.). When you run, it won't.

If you start by selecting "Run", you can later attach the debugger through the Device view. That will switch to "Debug" mode. Conversely, you can (also through the Device view) detach from a process being debugged and it will switch to "Run" mode.

Run as Android application: 

It will normally run your code without going through the breakpoints you selected.

Debug as an Android Application:

It will check(or debug) your code via going through all the breakpoints you described or set in your code.It actually checks the code line by line and is the best friend of a developer through which it can test the application well.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top