Click here to Skip to main content
15,905,427 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: c++ MS Word Pin
Member 1238494428-Jan-19 2:48
Member 1238494428-Jan-19 2:48 
AnswerRe: c++ MS Word Pin
Stefan_Lang28-Jan-19 2:11
Stefan_Lang28-Jan-19 2:11 
QuestionHow to print all source code what was running? Pin
Member 1308136924-Jan-19 16:35
Member 1308136924-Jan-19 16:35 
AnswerRe: How to print all source code what was running? Pin
Victor Nijegorodov24-Jan-19 20:49
Victor Nijegorodov24-Jan-19 20:49 
GeneralRe: How to print all source code what was running? Pin
Member 1308136924-Jan-19 21:54
Member 1308136924-Jan-19 21:54 
GeneralRe: How to print all source code what was running? Pin
HS_C_Student26-Jan-19 4:06
HS_C_Student26-Jan-19 4:06 
GeneralRe: How to print all source code what was running? Pin
Member 1308136926-Jan-19 11:22
Member 1308136926-Jan-19 11:22 
AnswerRe: How to print all source code what was running? Pin
Richard MacCutchan24-Jan-19 22:12
mveRichard MacCutchan24-Jan-19 22:12 
GeneralRe: How to print all source code what was running? Pin
Member 1308136925-Jan-19 4:24
Member 1308136925-Jan-19 4:24 
GeneralRe: How to print all source code what was running? Pin
Richard MacCutchan25-Jan-19 4:46
mveRichard MacCutchan25-Jan-19 4:46 
GeneralRe: How to print all source code what was running? Pin
Stefan_Lang28-Jan-19 2:01
Stefan_Lang28-Jan-19 2:01 
AnswerRe: How to print all source code what was running? Pin
Stefan_Lang25-Jan-19 3:29
Stefan_Lang25-Jan-19 3:29 
GeneralRe: How to print all source code what was running? Pin
Member 1308136925-Jan-19 4:30
Member 1308136925-Jan-19 4:30 
GeneralRe: How to print all source code what was running? Pin
Stefan_Lang28-Jan-19 0:42
Stefan_Lang28-Jan-19 0:42 
QuestionRe: How to print all source code what was running? Pin
David Crow25-Jan-19 4:44
David Crow25-Jan-19 4:44 
AnswerRe: How to print all source code what was running? Pin
k505425-Jan-19 6:31
mvek505425-Jan-19 6:31 
QuestionRe: How to print all source code what was running? Pin
David Crow25-Jan-19 6:46
David Crow25-Jan-19 6:46 
GeneralRe: How to print all source code what was running? Pin
Member 1308136925-Jan-19 13:51
Member 1308136925-Jan-19 13:51 
GeneralRe: How to print all source code what was running? Pin
Stefan_Lang28-Jan-19 0:52
Stefan_Lang28-Jan-19 0:52 
AnswerRe: How to print all source code what was running? Pin
Member 1308136925-Jan-19 13:43
Member 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
Member 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
Member 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

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.