Click here to Skip to main content
14,269,316 members

C / C++ / MFC

 
GeneralRe: How to print all source code what was running? Pin
Member 1308136925-Jan-19 13:51
memberMember 1308136925-Jan-19 13:51 
GeneralRe: How to print all source code what was running? Pin
Stefan_Lang28-Jan-19 0:52
memberStefan_Lang28-Jan-19 0:52 
AnswerRe: How to print all source code what was running? Pin
Member 1308136925-Jan-19 13:43
memberMember 1308136925-Jan-19 13:43 
AnswerRe: How to print all source code what was running? Pin
Randor 25-Jan-19 13:51
professional Randor 25-Jan-19 13:51 
GeneralRe: How to print all source code what was running? Pin
Member 1308136926-Jan-19 12:53
memberMember 1308136926-Jan-19 12:53 
GeneralRe: How to print all source code what was running? Pin
Randor 26-Jan-19 15:43
professional Randor 26-Jan-19 15:43 
GeneralRe: How to print all source code what was running? Pin
Member 1308136926-Jan-19 22:40
memberMember 1308136926-Jan-19 22:40 
GeneralRe: How to print all source code what was running? Pin
Randor 28-Jan-19 4:30
professional Randor 28-Jan-19 4:30 
Member 13081369 wrote:
But, How to "set the hardware breakpoints at DR0-DR7 and automate every single-step through your entire program"?

With the SetThreadContext function. It would be a great learning exercise for understanding both debugging and exception handling.

Member 13081369 wrote:
Can you give me a sample?

No,

But I thought of another way to do this automated that would not require modifying your source code. Dan Thompson has authored DbgShell which can be used from Powershell. With a simple powershell script you should be able to attach to your executable and single-step automated and then instantiate an IDiaDataSource object.

Again, like the other members responding to you... I can't imagine why you would want to print each line of source code.

Best Wishes,
-David Delaune
GeneralRe: How to print all source code what was running? Pin
Member 1308136930-Jan-19 12:22
memberMember 1308136930-Jan-19 12:22 
GeneralRe: How to print all source code what was running? Pin
Stefan_Lang28-Jan-19 1:32
memberStefan_Lang28-Jan-19 1:32 
GeneralRe: How to print all source code what was running? Pin
Randor 28-Jan-19 4:13
professional Randor 28-Jan-19 4:13 
GeneralRe: How to print all source code what was running? Pin
Stefan_Lang28-Jan-19 21:12
memberStefan_Lang28-Jan-19 21:12 
AnswerRe: How to print all source code what was running? Pin
Victor Nijegorodov26-Jan-19 5:26
memberVictor Nijegorodov26-Jan-19 5:26 
GeneralRe: How to print all source code what was running? Pin
Member 1308136926-Jan-19 12:05
memberMember 1308136926-Jan-19 12:05 
GeneralRe: How to print all source code what was running? Pin
Victor Nijegorodov27-Jan-19 0:02
memberVictor Nijegorodov27-Jan-19 0:02 
GeneralRe: How to print all source code what was running? Pin
Member 1308136928-Jan-19 1:38
memberMember 1308136928-Jan-19 1:38 
GeneralRe: How to print all source code what was running? Pin
Victor Nijegorodov28-Jan-19 1:51
memberVictor Nijegorodov28-Jan-19 1:51 
AnswerRe: How to print all source code what was running? Pin
Stefan_Lang28-Jan-19 1:46
memberStefan_Lang28-Jan-19 1:46 
QuestionHow to change the background color of checkbox in CListCtrl? Pin
manoharbalu23-Jan-19 19:05
membermanoharbalu23-Jan-19 19:05 
SuggestionRe: How to change the background color of checkbox in CListCtrl? Pin
Richard MacCutchan23-Jan-19 22:37
protectorRichard MacCutchan23-Jan-19 22:37 
GeneralRe: How to change the background color of checkbox in CListCtrl? Pin
manoharbalu24-Jan-19 1:35
membermanoharbalu24-Jan-19 1:35 
QuestionTools to refactor C++ code - Rad studio Pin
ptr_Electron23-Jan-19 17:48
memberptr_Electron23-Jan-19 17:48 
AnswerRe: Tools to refactor C++ code - Rad studio Pin
Richard MacCutchan23-Jan-19 22:33
protectorRichard MacCutchan23-Jan-19 22:33 
AnswerRe: Tools to refactor C++ code - Rad studio Pin
Maximilien24-Jan-19 8:36
memberMaximilien24-Jan-19 8:36 
AnswerRe: Tools to refactor C++ code - Rad studio Pin
Stefan_Lang25-Jan-19 3:54
memberStefan_Lang25-Jan-19 3:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.