Open JoeDupuis opened 10 years ago
It might not be a timeout, maybe my app isn't build right (maybe some debug symbol get stripped out), but my app is slow to open and it print the timeout message way before the app is up and running. So I won't be sure which one it is before boosting the timeout.
Try set remotetimeout number
you can put in in .gdbinit
file as well.
https://sourceware.org/gdb/onlinedocs/gdb/Remote-Configuration.html
Tried it. I think the problem was that i needed -g in the linking step too, not just compiling. I still have two problem now. I can't use the standalone flash player to debug. When I use it in the FLASCC_GDB_RUNTIME variable it tells me that gdb can't find the flash runtime. It works when I set a web browser as the flash runtime, but it takes forever to load the game (more than an hour and then I killed it).
Hi, Try setting the following env. vars.:
FLASCC_GDB_RUNTIME=/cygdrive/c/Work/tools/flashplayer.exe FLASHPLAYER_DEBUGGER=C:\Work\tools\flashplayer.exe FLASH_PLAYER_EXE=C:\Work\tools\flashplayer.exe
I think the first one which is actually needed for GDB, the others are for FlexUnit and for some other 3rd party components.
I'll try, but I doubt that the last one would be call FLASH_PLAYER_EXE on OSX (I am working on OSX).
I copy a portion of a travis.yml script:
# Adobe Flash Player for CLI
- brew install caskroom/cask/brew-cask
- brew cask install flash-player-debugger
# Set env. variable used by FlexUnit
- export FLASHPLAYER_DEBUGGER="$HOME/Applications/Flash Player Debugger.app/Contents/MacOS/Flash Player Debugger"
# Set env. variable used by Gradle
- export FLASH_PLAYER_EXE="$HOME/Applications/Flash Player Debugger.app/Contents/MacOS/Flash Player Debugger"
So just switch the path with the OSX one after installing debug player using Brew Cask or Direct installer.
I created a SWF from a debug crossbridge SWC and other SWC produced from Flash pro for assets using the MXMLC compiler from air (the ASC2 one not the Flex one).
When I try to run it with gdb it takes a while, but it start. Though gdb never attach and print:
crossbridge/sdk/usr/bin/../../usr/share/flascc-run.gdb:1: Error in sourced command file: localhost:6666: Operation timed out.
Any idea How to boost the timeout on gdb?