Is there anyway to make to write a crash handler for haxeflixel that can create logs and use a interface to a advanced error report? - haxe

How to build a haxeflixel Crash Handler?
As it says in the Title I was wondering if there is any way to let haxeflixel catch a error and then pass it over to a Crash Handler of some kind?
Any help would be appreciated.

You could check and use crashdumper library or code related to it (require some settings in project file)

Related

How to debug a react.js library

I have been using react for about a year now and i recently wanted to delve into react-beautiful-dnd. I've built plugins for vanilla js and jQuery in the past , but i am not to sure about how to go about building a react.js plugin or even debug it. i am more interested in debugging this plugin and seeing how it works more then anything , so how exactly do i go about doing it ?
Typically with a JS plugin, its mostly one file , so a console.log inside each function would give you a clear enough understanding of why and when a certain function is triggered , how would you go about doing the same with a react.js plugin ?
There are multiple ways to debug.
node debug app.js
node-inspector
console
util
Well, I use a lot of well place console.log, console.dir and util.inspect statements throughout my code and follow the logic that way.
react-beautiful-dnd
Unfortunately there is not much documentation and do-how thing for given topic. But here is what I found helpful. you can follow this link for Quick start guide: https://github.com/atlassian/react-beautiful-dnd/issues/363
The codesandbox examples from the docs:
https://github.com/atlassian/react-beautiful-dnd#basic-usage-examples
Sample Project: https://github.com/jacobwicks/rbdnd-2-list-example
All Examples
Basic usage examples
We have created some basic examples on codesandbox for you to play with directly:
Simple vertical list
Simple horizontal list
Simple DnD between two lists
To Debug any Library:
Here's how you can debug that library. This is the most basic method.
Install it.
Check what you are using and what you need to debug.
Find that method in the node_modules.
Check if that method has any declaration in the code.
If yes put some console logs and see if they get printed on console.
Then check console for your logs.
Carry on the process of console logs until you get what you are looking for.
You have to find library's function you want to debug in node_module and console.log from there. You may need to console.log the parsed file usually found in node_module/plugin/lib or node_module/plugin/dist rather then the .jsx file in node_module/plugin/src.
How do I debug Node.js applications?.
This has quite a few answers on how you can go about debugging your react application.

What to do when app crashes and Qt Creator (GDB) won't give backtrace?

My Qt app is crashing, with no output but this:
QML debugging is enabled. Only use this in a safe environment.
The program has unexpectedly finished.
When I run it in the debugger, it also crashes really fast and the stacktrace pane in Qt Creator is empty. Any ideas how to debug this?
I would try breaking apart your code and testing sections of it, so you can at least narrow the issue down. Saying it crashes really fast doesn't exactly give enough context for us to provide solutions.

Exception thrown in very specific configuration

I have very weird situation where I have unit test (XUnit) that try to resolve webapi controllers through Autofac ( with web api contrib).
I have a situation where If I switch my configuration in Release mode, test in x86 mode, and run my test (if debug my test then it works) it throws an exception about the fact it can't resolve the controller.
Change whatever parameters in the above configuration it then works perfectly(I am using VS2012).
I know it is very little information and can not ask for a solution, but any clue about what could have been wrong will be appreciated!
Just for the record , I was trying to look at the stack frame to extract the caller class of method. In release mode, JIT may actually optimize the call stack (kind of Tail optimization) and basically remove what I expected to find (and was able to find in debug).

write to log during debugging in visual c++ express 2010

I am working on a GUI project in Visual C++ Express 2010. Now working on the classes, and to test them I do not want to start working in the GUI already. Is there a way to send some debug output to a log file or the debuggers output window?
Have done quite some work in Appcelerator's Titanium lately, and there you can use Ti.API.info() to send some info to yourself, to see how the app is behaving. Is there something for Visual C++ too?
Thanks!
Pieter
You can use the TRACE macros - they will send the output to the debug output window. You can also see the trace messages without the debugger running using DebugView
See also this for an overview of the available debugging / tracing techniques.
Did a little research more research with Google using TRACE as a keyword. Ended up here with a solution that did exactly what I wanted.
using namespace System::Diagnostics;
Debug::WriteLine("This will be written to debug output");
Now, start debugging, go the the "Output" tab in the Output window and show output from "Debug". Then it will give you the messages I was looking for. So Debug::WriteLine is what I needed here.

j2me SDK3 for AWT/Swing application

I try to development an embedded application with Eclipse + J2me SDK3 + CDC.
When I am trying to create a Frame or JFrame, there is an error says "Could not read environment variable SUBLIME-PROC-ID".
Who know what's the problem?
Thanks in advance
I am not going to do some phone development.
I just want to do some embedded application which with AWT or Swing or SWT GUI. It is ok when it runs in Eclipse environment.
But When it runs without the eclipse, the problem is "Could not read environment variable SUBLIME-PROC-ID". (I run it under the CDC environment)
You will want to get a J2ME plugin for Eclipse, but I have found that doing J2ME development is easier using Netbeans.
I haven't use a frame in J2ME, but you may want to just use a Canvas.
Here is a relatively simple example of doing some frame animation on J2ME.
http://www.roseindia.net/j2me/frame-animation.shtml
If you are using the Personal Profile then you can develop much as you would with JavaSE, but I don't know if you are going with that.
UPDATE:
Toward the end of this post a comment was made that SUBLIME-PROC-ID was defined in a bash configuration file, and when that was removed the error went away.
You may have it defined somewhere in one of your configuration files, so you may want to look for that. I have never heard of this environment variable, so you may want to change your tags to have something about run-configuration or something in it, to help others out.
http://forums.java.net/jive/thread.jspa?messageID=353367

Resources