[
https://issues.apache.org/jira/browse/FLEX-34297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14007064#comment-14007064
]
Frédéric THOMAS commented on FLEX-34297:
----------------------------------------
We can now set a breakpoint from another worker, fdb will set it as soon is got
a chance:
Apache fdb (Flash Player Debugger) [build development]
Copyright 2013 The Apache Software Foundation. All rights reserved.
(fdb) run
Waiting for Player to connect
Player connected; session starting.
Set breakpoints and then type 'continue' to resume the session.
(fdb) break BackWorker.as:27
[SWF] MP3Worker.swf - 181 082 bytes after decompression
Breakpoint 1 created, but not yet resolved.
The breakpoint will be resolved when the corresponding file or function is
loaded.
(fdb) c
[WorkerCreate] 1
[SWF] MP3Worker.swf - 528 227 bytes after decompression
Additional ActionScript code has been loaded from a SWF or a frame.
To see all currently loaded files, type 'info files'.
Active worker has changed to worker 1
Resolved breakpoint 1 to onMainToBack() at BackWorker.as:27
Set additional breakpoints as desired, and then type 'continue'.
(fdb) worker 0
Active worker has changed to worker Main Thread
(fdb) halt
Attempting to suspend Player execution...
Player stopped
(fdb) break BackWorker.as:28
Breakpoint 2 created, but not yet resolved.
The breakpoint will be resolved when the corresponding file or function is
loaded.
(fdb) c
Additional ActionScript code has been loaded from a SWF or a frame.
To see all currently loaded files, type 'info files'.
Active worker has changed to worker 1
Resolved breakpoint 2 to onMainToBack() at BackWorker.as:28
Set additional breakpoints as desired, and then type 'continue'.
(fdb) info break
Num Type Disp Enb Address What
1 breakpoint keep y 0x00000000 in onMainToBack() at BackWorker.as:27
(Worker 1)
2 breakpoint keep y 0x00000000 in onMainToBack() at BackWorker.as:28
(Worker 1)
Set additional breakpoints as desired, and then type 'continue'.
(fdb)
> FDB set a breakpoint in the wrong file when asked to be set for a file
> existing in another Worker
> -------------------------------------------------------------------------------------------------
>
> Key: FLEX-34297
> URL: https://issues.apache.org/jira/browse/FLEX-34297
> Project: Apache Flex
> Issue Type: Bug
> Components: FDB - Debugger
> Reporter: Frédéric THOMAS
> Assignee: Frédéric THOMAS
> Fix For: Apache Flex 4.13.0
>
> Attachments: fdb.jar
>
>
> Example:
> Apache fdb (Flash Player Debugger) [build 20140430]
> Copyright 2013 The Apache Software Foundation. All rights reserved.
> (fdb) run
> Waiting for Player to connect
> Player connected; session starting.
> Set breakpoints and then type 'continue' to resume the session.
> (fdb) c
> [SWF] C:\work\flex_projects\MP3Worker\bin-debug\MP3Worker.swf - 175а169
> bytes after decompression
> [WorkerCreate] 1
> Additional ActionScript code has been loaded from a SWF or a frame.
> To see all currently loaded files, type 'info files'.
> Active worker has changed to worker 1
>
> Set additional breakpoints as desired, and then type 'continue'.
> (fdb) c
> [SWF] C:\work\flex_projects\MP3Worker\bin-debug\MP3Worker.swf - 493а264
> bytes after decompression
> halt
> Do you want to attempt to halt execution? (y or n) y
> Attempting to halt.
> To help out, try nudging the Player (e.g. press a button)
> Execution halted at 0x00009aeb (39659)
> (fdb) worker 0
> Active worker has changed to worker Main Thread
> (fdb) halt
> Attempting to suspend Player execution...
> Player stopped
> (fdb) info workers
> Main Thread 0 - Suspended (Active)
> Worker 1 - Suspended
> (fdb) break BackWorker.as:30
> Breakpoint 1: file MP3Worker.as, line 30 // WRONG FILE
--
This message was sent by Atlassian JIRA
(v6.2#6252)