Debugging Haxe with HaxeCpp and IntelliJ. DebugSocket not Found -


i trying haxe debugger working intellij, using information this video tutorial , this blog post.

at 1 point, tutorial says debugsocket object must created in "create" method of main file. however, when type in, unknown symbol error.

from understand, debugsocket object should available hxcpp library (which have included). however, options given if type new hxcpp. are:

  • builder
  • nekoinit
  • staticmysql
  • staticregexp
  • staticsqlite
  • staticstd
  • staticzlib

what doing wrong? have included wrong library? these tutorials referencing older version of library? there anywhere can find comprehensive documentation on how use hxcpp debug tools properly?

if easier flash build consider this.

i haven't gotten hxcpp debugging work (but m sure does). however, find flash debugging easier. assume have project setup in idea (and isn't using simple text editor). set of steps took work:

  1. open project structure (from menu 'file', 'project structure')
  2. find 'modules' section on left, , select module, find 'haxe' tab.
  3. in haxe tab, select compile 'openfl', , target flash.
  4. in bottom part of haxe tab, select flex sdk.
  5. if don't have flex+air sdk installed, can install going http://www.adobe.com/devnet/flex/flex-sdk-download.html, , http://www.adobe.com/devnet/air/air-sdk-download.html. make sure remember installed it. alternative place can find via flashdevelop's 'tools', 'install software' menu (which default installs c:/users/username/appdata/local/flashdevelop/apps/flexairsdk/4.6.0+4.0.0/.
  6. you can add sdk intellij selecting 'sdks' on left, , click on '+', , select 'flex/air' sdk. need flex plugin installed (whcih should default).
  7. once got debug sdk setup, can create run configuration, , debug (click on debug run menu item or toolbar button).

one complication on windows, potentially have deadlock haxelib not starting app, , intellij hanging wait it. see https://github.com/tivo/intellij-haxe/issues/123 - have outlined solution in issue comment if find have problem.

use website : http://raintomorrow.cc/post/48029438701/setup-idea-intellij-for-haxe-nme-development screenshots (it's older version of intellij tho).


Comments