PC리버싱/기타

Visual Studio 2019 디버거 사용법 정리

Lamed_Dhhd 2020. 6. 6. 12:18
반응형

https://docs.microsoft.com/ko-kr/visualstudio/debugger/debugger-feature-tour?view=vs-2019

 

디버거 소개 - Visual Studio

Visual Studio 디버거를 사용하여 애플리케이션 디버깅 시작

docs.microsoft.com

마소 참고

  • F5 - Run - This both starts the debugging session and continues the debugging session if the session is paused.
  • F10 - Step Over - This runs just the next statement. If the next statement is a function call, it runs the whole function before pausing execution again (unless there is a breakpoint in the function).
  • F11 - Step Into - This runs just the next statement. If the next statement is a function call, it will bring you to that function and pause before the first statement in there is run.
  • Shift+F11 - Step Out - This runs until the code returns from the currently running function. It’s really handy when you are done debugging a function, but that function still has a lot of statements to execute.
  • Ctrl+F10 - Run to Cursor - This allows you to move the cursor to a line of code then run until the debugger gets there. This is handy if you want to skip over a block of code. You could also press F9 then F5 which would add a Breakpoint at your cursor, then run to it.
  • Ctrl+Shift+F10 - Set Next Statement - This sets the line your cursor is on as the next statement the debugger will run. Really handy if you missed something and want to backup and debug it again.
  • Alt+Num * - Show Next Statement - Sorry laptop users, this one only works with the * on the number pad. This one takes you to the next statement that will run. Really handy if you’ve been sifting through code and want to quickly return to your debugging without executing any statements.
  • Shift+F5 - Stop Debugging - Ends your debugging session.
  • Ctrl+Shift+F5 - Restart Debugging - Getting the message “Edits were made to the code which cannot be applied while debugging”? This will quickly restart the debug session and have you on your way.
  • 출처 

https://hutchcodes.net/2019/04/visual-studio-tips-debug-keyboard-shortcuts/

 

Hutch Codes — Visual Studio Tips - Keyboard Shortcuts for Debugging

There are literally hundreds of keyboard shortcuts in Visual Studio, and few people have them all memorized, but it is definitely worthwhile to memorize at least a few. Here are some that are useful while you’re debugging. F5 - Run - This both starts the

hutchcodes.net

해석

  • 디버깅 시작: F5
  • 프로시저 단위 실행: F10
  • 한 단계씩 코드 실행: F11
  • Shift + F11 : 파고들어간 함수를 한 단계 빠져나옴.
  • Ctrl + F10 : Run to Cursor (커서위치까지 디버깅 진행하고 대기)
  • Shift+F5 (디버깅중지)
  • Ctrl+Shift+F5(다시 디버깅)

 

https://dojang.io/mod/page/view.php?id=806

 

C 언어 코딩 도장: 6.1 중단점 사용하기

6 디버거 사용하기 Visual Studio는 C 언어를 컴파일하는 기능뿐만 아니라 디버거(debugger)라는 유용한 기능도 함께 들어 있습니다. 이번에는 신체 내부를 들여다보는 엑스레이처럼 프로그램의 내부 �

dojang.io

 

이글을 참고하세요

 

 

반응형