How to log windbgx.exe output to a file?












2















In this documentation (https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/windbg-command-line-preview) it says that the following command should log the output to a file:



WinDbgX.exe logo ".myfile.txt"


However the windbg tells me that the debugger cannot find the file specified. I did run the command from powershell where myfile.txt is located so im not sure what the correct syntax is. I also tried other variants such as:



WinDbgX.exe "logo .aaa.txt"


I also tried passing the parameter after specifying a particular imagine file to debug:



windbgx.exe myapp.exe logo myfile.txt









share|improve this question























  • Is that something powershell specific? Can you run it in cmd?

    – Mike Twc
    Nov 25 '18 at 2:32











  • It's not. I also tried from cmd.

    – mbl
    Nov 25 '18 at 2:37











  • Did you tried full path of the file? I think "." will be a working directory of windbg, not powershell's

    – Mike Twc
    Nov 25 '18 at 2:42











  • From PS I tried: WinDbgX.exe .myapp.exe logo "C:UsersmynameDesktopaaa.txt" and I don't get an error anymore. However nothing is logged to my text file after I break into my program and use some debugger commands just to test. The first line of the command window that appears when the debugger launch is this: CommandLine: .myapp.exe logo C:UsersmynameDesktopaaa.txt

    – mbl
    Nov 25 '18 at 2:50








  • 1





    Possible typo in the documentation. Try -logo with a leading hyphen. Without the hyphen, it looks like you're trying to debug a program called logo.

    – Raymond Chen
    Nov 25 '18 at 4:13


















2















In this documentation (https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/windbg-command-line-preview) it says that the following command should log the output to a file:



WinDbgX.exe logo ".myfile.txt"


However the windbg tells me that the debugger cannot find the file specified. I did run the command from powershell where myfile.txt is located so im not sure what the correct syntax is. I also tried other variants such as:



WinDbgX.exe "logo .aaa.txt"


I also tried passing the parameter after specifying a particular imagine file to debug:



windbgx.exe myapp.exe logo myfile.txt









share|improve this question























  • Is that something powershell specific? Can you run it in cmd?

    – Mike Twc
    Nov 25 '18 at 2:32











  • It's not. I also tried from cmd.

    – mbl
    Nov 25 '18 at 2:37











  • Did you tried full path of the file? I think "." will be a working directory of windbg, not powershell's

    – Mike Twc
    Nov 25 '18 at 2:42











  • From PS I tried: WinDbgX.exe .myapp.exe logo "C:UsersmynameDesktopaaa.txt" and I don't get an error anymore. However nothing is logged to my text file after I break into my program and use some debugger commands just to test. The first line of the command window that appears when the debugger launch is this: CommandLine: .myapp.exe logo C:UsersmynameDesktopaaa.txt

    – mbl
    Nov 25 '18 at 2:50








  • 1





    Possible typo in the documentation. Try -logo with a leading hyphen. Without the hyphen, it looks like you're trying to debug a program called logo.

    – Raymond Chen
    Nov 25 '18 at 4:13
















2












2








2


0






In this documentation (https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/windbg-command-line-preview) it says that the following command should log the output to a file:



WinDbgX.exe logo ".myfile.txt"


However the windbg tells me that the debugger cannot find the file specified. I did run the command from powershell where myfile.txt is located so im not sure what the correct syntax is. I also tried other variants such as:



WinDbgX.exe "logo .aaa.txt"


I also tried passing the parameter after specifying a particular imagine file to debug:



windbgx.exe myapp.exe logo myfile.txt









share|improve this question














In this documentation (https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/windbg-command-line-preview) it says that the following command should log the output to a file:



WinDbgX.exe logo ".myfile.txt"


However the windbg tells me that the debugger cannot find the file specified. I did run the command from powershell where myfile.txt is located so im not sure what the correct syntax is. I also tried other variants such as:



WinDbgX.exe "logo .aaa.txt"


I also tried passing the parameter after specifying a particular imagine file to debug:



windbgx.exe myapp.exe logo myfile.txt






powershell cmd windbg






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 25 '18 at 1:57









mblmbl

6818




6818













  • Is that something powershell specific? Can you run it in cmd?

    – Mike Twc
    Nov 25 '18 at 2:32











  • It's not. I also tried from cmd.

    – mbl
    Nov 25 '18 at 2:37











  • Did you tried full path of the file? I think "." will be a working directory of windbg, not powershell's

    – Mike Twc
    Nov 25 '18 at 2:42











  • From PS I tried: WinDbgX.exe .myapp.exe logo "C:UsersmynameDesktopaaa.txt" and I don't get an error anymore. However nothing is logged to my text file after I break into my program and use some debugger commands just to test. The first line of the command window that appears when the debugger launch is this: CommandLine: .myapp.exe logo C:UsersmynameDesktopaaa.txt

    – mbl
    Nov 25 '18 at 2:50








  • 1





    Possible typo in the documentation. Try -logo with a leading hyphen. Without the hyphen, it looks like you're trying to debug a program called logo.

    – Raymond Chen
    Nov 25 '18 at 4:13





















  • Is that something powershell specific? Can you run it in cmd?

    – Mike Twc
    Nov 25 '18 at 2:32











  • It's not. I also tried from cmd.

    – mbl
    Nov 25 '18 at 2:37











  • Did you tried full path of the file? I think "." will be a working directory of windbg, not powershell's

    – Mike Twc
    Nov 25 '18 at 2:42











  • From PS I tried: WinDbgX.exe .myapp.exe logo "C:UsersmynameDesktopaaa.txt" and I don't get an error anymore. However nothing is logged to my text file after I break into my program and use some debugger commands just to test. The first line of the command window that appears when the debugger launch is this: CommandLine: .myapp.exe logo C:UsersmynameDesktopaaa.txt

    – mbl
    Nov 25 '18 at 2:50








  • 1





    Possible typo in the documentation. Try -logo with a leading hyphen. Without the hyphen, it looks like you're trying to debug a program called logo.

    – Raymond Chen
    Nov 25 '18 at 4:13



















Is that something powershell specific? Can you run it in cmd?

– Mike Twc
Nov 25 '18 at 2:32





Is that something powershell specific? Can you run it in cmd?

– Mike Twc
Nov 25 '18 at 2:32













It's not. I also tried from cmd.

– mbl
Nov 25 '18 at 2:37





It's not. I also tried from cmd.

– mbl
Nov 25 '18 at 2:37













Did you tried full path of the file? I think "." will be a working directory of windbg, not powershell's

– Mike Twc
Nov 25 '18 at 2:42





Did you tried full path of the file? I think "." will be a working directory of windbg, not powershell's

– Mike Twc
Nov 25 '18 at 2:42













From PS I tried: WinDbgX.exe .myapp.exe logo "C:UsersmynameDesktopaaa.txt" and I don't get an error anymore. However nothing is logged to my text file after I break into my program and use some debugger commands just to test. The first line of the command window that appears when the debugger launch is this: CommandLine: .myapp.exe logo C:UsersmynameDesktopaaa.txt

– mbl
Nov 25 '18 at 2:50







From PS I tried: WinDbgX.exe .myapp.exe logo "C:UsersmynameDesktopaaa.txt" and I don't get an error anymore. However nothing is logged to my text file after I break into my program and use some debugger commands just to test. The first line of the command window that appears when the debugger launch is this: CommandLine: .myapp.exe logo C:UsersmynameDesktopaaa.txt

– mbl
Nov 25 '18 at 2:50






1




1





Possible typo in the documentation. Try -logo with a leading hyphen. Without the hyphen, it looks like you're trying to debug a program called logo.

– Raymond Chen
Nov 25 '18 at 4:13







Possible typo in the documentation. Try -logo with a leading hyphen. Without the hyphen, it looks like you're trying to debug a program called logo.

– Raymond Chen
Nov 25 '18 at 4:13














1 Answer
1






active

oldest

votes


















1














The log options seem to be unavailable in WinDbg Preview (WinDbgX) version 1.0.1810.02001, as well as some others like /update.



Even /? and -? do not display the list of available commands. Instead it runs invisible with 100% CPU on one logical core.



As an alternative, run -c ".logopen myfile.txt" to open a log file at the initial breakpoint.





The "old" WinDbg (non-Preview) uses -logo with a hyphen. Since you tried WinDbgX.exe .myapp.exe -logo "C:UsersmynameDesktopaaa.txt, let me note that the executable needs to be the last parameter on the WinDbg command line.



If you pass anything behind the executable, that will be passed as parameters to that executable:




executable



Specifies the command line of an executable process. This is used to launch a new process and debug it. This has to be the final item on the command line. All text after the executable name is passed to the executable as its argument string.







share|improve this answer


























  • This makes sense to me, however I just tried WinDbgX.exe -logo "C:UsersmynameDesktopaaa.txt" "C:Usersmynamemyapp.exe" and when windbg opens I get the error Couldn't process command line parameters: Unrecognized command line option: logo

    – mbl
    Nov 25 '18 at 18:48













Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53464035%2fhow-to-log-windbgx-exe-output-to-a-file%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














The log options seem to be unavailable in WinDbg Preview (WinDbgX) version 1.0.1810.02001, as well as some others like /update.



Even /? and -? do not display the list of available commands. Instead it runs invisible with 100% CPU on one logical core.



As an alternative, run -c ".logopen myfile.txt" to open a log file at the initial breakpoint.





The "old" WinDbg (non-Preview) uses -logo with a hyphen. Since you tried WinDbgX.exe .myapp.exe -logo "C:UsersmynameDesktopaaa.txt, let me note that the executable needs to be the last parameter on the WinDbg command line.



If you pass anything behind the executable, that will be passed as parameters to that executable:




executable



Specifies the command line of an executable process. This is used to launch a new process and debug it. This has to be the final item on the command line. All text after the executable name is passed to the executable as its argument string.







share|improve this answer


























  • This makes sense to me, however I just tried WinDbgX.exe -logo "C:UsersmynameDesktopaaa.txt" "C:Usersmynamemyapp.exe" and when windbg opens I get the error Couldn't process command line parameters: Unrecognized command line option: logo

    – mbl
    Nov 25 '18 at 18:48


















1














The log options seem to be unavailable in WinDbg Preview (WinDbgX) version 1.0.1810.02001, as well as some others like /update.



Even /? and -? do not display the list of available commands. Instead it runs invisible with 100% CPU on one logical core.



As an alternative, run -c ".logopen myfile.txt" to open a log file at the initial breakpoint.





The "old" WinDbg (non-Preview) uses -logo with a hyphen. Since you tried WinDbgX.exe .myapp.exe -logo "C:UsersmynameDesktopaaa.txt, let me note that the executable needs to be the last parameter on the WinDbg command line.



If you pass anything behind the executable, that will be passed as parameters to that executable:




executable



Specifies the command line of an executable process. This is used to launch a new process and debug it. This has to be the final item on the command line. All text after the executable name is passed to the executable as its argument string.







share|improve this answer


























  • This makes sense to me, however I just tried WinDbgX.exe -logo "C:UsersmynameDesktopaaa.txt" "C:Usersmynamemyapp.exe" and when windbg opens I get the error Couldn't process command line parameters: Unrecognized command line option: logo

    – mbl
    Nov 25 '18 at 18:48
















1












1








1







The log options seem to be unavailable in WinDbg Preview (WinDbgX) version 1.0.1810.02001, as well as some others like /update.



Even /? and -? do not display the list of available commands. Instead it runs invisible with 100% CPU on one logical core.



As an alternative, run -c ".logopen myfile.txt" to open a log file at the initial breakpoint.





The "old" WinDbg (non-Preview) uses -logo with a hyphen. Since you tried WinDbgX.exe .myapp.exe -logo "C:UsersmynameDesktopaaa.txt, let me note that the executable needs to be the last parameter on the WinDbg command line.



If you pass anything behind the executable, that will be passed as parameters to that executable:




executable



Specifies the command line of an executable process. This is used to launch a new process and debug it. This has to be the final item on the command line. All text after the executable name is passed to the executable as its argument string.







share|improve this answer















The log options seem to be unavailable in WinDbg Preview (WinDbgX) version 1.0.1810.02001, as well as some others like /update.



Even /? and -? do not display the list of available commands. Instead it runs invisible with 100% CPU on one logical core.



As an alternative, run -c ".logopen myfile.txt" to open a log file at the initial breakpoint.





The "old" WinDbg (non-Preview) uses -logo with a hyphen. Since you tried WinDbgX.exe .myapp.exe -logo "C:UsersmynameDesktopaaa.txt, let me note that the executable needs to be the last parameter on the WinDbg command line.



If you pass anything behind the executable, that will be passed as parameters to that executable:




executable



Specifies the command line of an executable process. This is used to launch a new process and debug it. This has to be the final item on the command line. All text after the executable name is passed to the executable as its argument string.








share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 25 '18 at 19:41

























answered Nov 25 '18 at 18:29









Thomas WellerThomas Weller

28.8k1066137




28.8k1066137













  • This makes sense to me, however I just tried WinDbgX.exe -logo "C:UsersmynameDesktopaaa.txt" "C:Usersmynamemyapp.exe" and when windbg opens I get the error Couldn't process command line parameters: Unrecognized command line option: logo

    – mbl
    Nov 25 '18 at 18:48





















  • This makes sense to me, however I just tried WinDbgX.exe -logo "C:UsersmynameDesktopaaa.txt" "C:Usersmynamemyapp.exe" and when windbg opens I get the error Couldn't process command line parameters: Unrecognized command line option: logo

    – mbl
    Nov 25 '18 at 18:48



















This makes sense to me, however I just tried WinDbgX.exe -logo "C:UsersmynameDesktopaaa.txt" "C:Usersmynamemyapp.exe" and when windbg opens I get the error Couldn't process command line parameters: Unrecognized command line option: logo

– mbl
Nov 25 '18 at 18:48







This makes sense to me, however I just tried WinDbgX.exe -logo "C:UsersmynameDesktopaaa.txt" "C:Usersmynamemyapp.exe" and when windbg opens I get the error Couldn't process command line parameters: Unrecognized command line option: logo

– mbl
Nov 25 '18 at 18:48






















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53464035%2fhow-to-log-windbgx-exe-output-to-a-file%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

404 Error Contact Form 7 ajax form submitting

How to know if a Active Directory user can login interactively

Refactoring coordinates for Minecraft Pi buildings written in Python