Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GDB localhost:6666: Operation timed out. #55

Open
JoeDupuis opened this issue Sep 12, 2014 · 6 comments
Open

GDB localhost:6666: Operation timed out. #55

JoeDupuis opened this issue Sep 12, 2014 · 6 comments
Labels

Comments

@JoeDupuis
Copy link
Member

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?

@JoeDupuis
Copy link
Member Author

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.

@w-vi
Copy link

w-vi commented Oct 14, 2014

Try set remotetimeout number you can put in in .gdbinit file as well.

https://sourceware.org/gdb/onlinedocs/gdb/Remote-Configuration.html

@JoeDupuis
Copy link
Member Author

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).

@vpmedia
Copy link
Member

vpmedia commented Oct 14, 2014

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.

@JoeDupuis
Copy link
Member Author

I'll try, but I doubt that the last one would be call FLASH_PLAYER_EXE on OSX (I am working on OSX).

@vpmedia
Copy link
Member

vpmedia commented Oct 14, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants