How to check what's wrong with visual studio code debugger - google-chrome

I've spent a lot of time trying to find a reason why vscode debugger (vscode-chrome-debug module) doesn't work as expected. I didn't find any way how to enable logging in vscode.

The solution is pretty easy, thanks to Andreas. You don't need to search additional vscode environment variables or config parameters. Just enable the diagnosticLogging option in your launch.json. It enables logs writing of vscode-chrome-debug module to ~/.vscode/extensions/msjsdiag.debugger-for-chrome/vscode-chrome-debug.txt

Related

How to use Haskell tool xml-to-json in terminal?

I am going to use xml-to-json to process a large xml file. I searched several methods, but they did not work due to out of memory. Then I found a tool implemented in Haskell, but when I tried this tool according to the guide, it says command not found. Could anyone please tell me how to use this tool? Thanks in advance. here is the link of the tool: https://github.com/sinelaw/xml-to-json#readme
Update
Screenshot of error
Most probably, your executable is built but isn't in your PATH.
On many systems cabal installs things to $HOME/.local/bin. So you can try adding that to your PATH environment variable.
It looks like you're using a Mac, in which case the path to use is $HOME/Library/Haskell/bin/. This page seems to have relevant instructions on how to configure Mac OS X.

Run .EXE From HTML And JS?

I made an project in Visual Studio Express using C#, i compilled it into an .exe, it run normally. is there any way to run my app from HTML, i'm making an website for me.
EDIT: i think is better to make an download and user install the app. thanks for helping :D
No.
You could create a link to the file, and allow people to download it. Their browser may give them a choice to run it immediately or not.
The only I know of to this would be to run an Ajax request and have a server side file execute the file. You can't do it with straight javascript, but if you're willing to use a language like PHP you'll be able to execute a file on your server "using" javascript.

How can I determine if I am running a side-loaded app or a Store-installed app?

For the sake of testing, knowing that I am running from Visual Studio would be nice. I could see if the debugger is attached, but that is not sufficient if I am running with CTRL+F5.
Here's how to see if the debugger is attached:
if (Debugger.IsAttached) Foo();
But my question is, I wonder if there is a way to ask if the current app is from the Store. So, I thought about install folder, but they are identical. Then I thought about this:
Windows.ApplicationModel.Package.Current.Id;
But this appears to be completely implemented even for apps that are being debugged. So, I am stumped. Does anyone know if we can determine if the app is from the Store?
While certainly not the most elegant solution and there's probably a better one, you can check Package.Current.InstalledLocation.Path
If you are running a debug build developed on your local machine and not side loaded, you'll have /debug/ in your folder path.
In Windows 10 apps (this also should be available in 8.1), you can check the IsDevelopmentMode property on the current package.
Package.Current.IsDevelopmentMode
That should tell you whether the package was installed in development mode (which I believe is synonymous with 'side-loaded').
See https://msdn.microsoft.com/en-us/library/windows/apps/windows.applicationmodel.package.isdevelopmentmode.aspx
for more information.

AIR - Supress Error messages in debug app?

In a packaged AIR app, I need to add a file called debug to C:\Program Files (x86)\The App\META-INF\AIR\debug for the software to function 'correctly' - I think it is a database error but I can not find anyway to solve it at the moment.
Is it possible to add this debug flag, but to suppress/hide any modal error boxes that may appear from another possible yet unknown bug?
Not sure I fully understand your problem. If what you need is some specific behavior only happening when you run the app in debug mode, then take a look to conditional compilation for example here.
But again, unsure I fully understand your problem!

"Post build event error"

I am using Visual Studio 2008 to build my projects.
I often take existing sample code and edit it and toy around with it, as I am just learning and I'd like to advance my skill.. it's nice to have a template to work with.
That being said, I often get the build error "Post build event failed". This is often accompanied by a "could not find xxx.sbr file" or something. I do not know what an sbr file is, not a "post-build event". Re-building doesn't seem to help, and clearing all the files out before tying another build does not help either.
That being said, the executable still always gets built.
I was wondering:
What is a post build event and what are the implications/causes of its failure?
What is an sbr file? I tried researching this a bit.. a "Source Browse File"? This site seemed pretty informative: http://www.ehow.com/facts_5657521_file-extension-sbr_.html
The problem is, I don't understand why the compiler would complain about not finding this (isn't it supposed to MAKE this?) and what EXACTLY it does ("enables Microsoft Visual Studio to access your source code" - can't it do this anyway?)
Thanks!
R
post build event is just a command you can have visual studio run after it's finished - maybe to kick off tests or build an installer.
It's in properties->build events in the menu - right click on the project.
The SBR file is used by visual studio to browse sources and lookup which function is in which file. I have had problems where somehow it's internal list of dependencies gets screwed up and it always rebuilds one of them.
Try a clean and rebuild, then try quitting visual studio and deleting the .ncb file