Possible to Write to VS Output Window?
4 posts
• Page 1 of 1
Possible to Write to VS Output Window?
Is it possible to write to the Visual Studio Output Window? I'm using PHP Tools with Visual Studio 2015 and am also using X-Debug and I'd like to be able to put some kind of print statement in my PHP that writes out to the Output > Debug window.
- hk1
- Posts: 2
- Joined: June 16th, 2017, 2:36 pm
Re: Possible to Write to VS Output Window?
Hello!
You might want to use "Tracepoints". Just create a breakpoint then to hover the breakpoint sign and select settings symbol. It will open a breakpoint settings dialog where you canfill the log message in to the Actions section.
The log message can cointan text and curly braces where you can include php expression which is going to be evaluated once the location is reached. e.g. "The value of $x is {$x}".
This way you don't need to modify your code and you will get what you want.
Hope that will help!
Cheers,
You might want to use "Tracepoints". Just create a breakpoint then to hover the breakpoint sign and select settings symbol. It will open a breakpoint settings dialog where you canfill the log message in to the Actions section.
The log message can cointan text and curly braces where you can include php expression which is going to be evaluated once the location is reached. e.g. "The value of $x is {$x}".
This way you don't need to modify your code and you will get what you want.
Hope that will help!
Cheers,
You do not have the required permissions to view the files attached to this post.
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbeno │ miloslav@devsense.com
-
Miloslav Beno - Posts: 1252
- Joined: January 7th, 2012, 8:36 pm
Re: Possible to Write to VS Output Window?
Any output from PHP will be sent to the browser. For this to work in PHP Tools, XDebug would have to support it and XDebug does not do anything like that.
If you want to log output from your application, write to a file or take a look at something like Firebug or Chrome Logger.
If you want to log output from your application, write to a file or take a look at something like Firebug or Chrome Logger.
-
jazz - Posts: 41
- Joined: August 25th, 2016, 1:59 am
- Location: Canberra, Australia
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 46 guests