How to suppress only [SWF] traces when debugging Flash applications
Asked Answered
G

6

9

I'm working on an Adobe Flex application that loads lots of Flex Modules and other Flash sub-applications and Flash resources. Each time one successfully loads the flashlog.txt and Flex Console show a trace like "[SWF] filename.swf - [filesize] bytes after decompression".

Specifically:
[SWF] Main.swf - 1,361,299 bytes after decompression
[SWF] core/Core.swf - 516,390 bytes after decompression

I don't want to disable traces because I am debugging, but these traces are rather noisy. How can I suppress only the [SWF] loaded traces?

Gearbox answered 10/8, 2010 at 1:13 Comment(0)
B
1

I suggest you use De MonsterDebugger an open source debugger for Adobe Flash, Flex and AIR.

It is perfect for what you are looking for, you can filter outputs, color code etc... Give it a go!

British answered 2/9, 2010 at 2:55 Comment(0)
M
0

I don't think there is going to be a way to do this. From what I know, your options are:

  1. Remove the traces from actionscript manually
  2. set "Omit Traces" in the publish settings
  3. Test in Firefox and use Flash Tracer. Flash Tracer has a built in filtering options that you might be able to use to better focus on the relevant traces.
Mastiff answered 14/8, 2010 at 14:12 Comment(0)
F
0

Not sure what OS you are on, but for Windows I view the Flash log with TailXP and it let's me filter out lines based on a string match.

Flinn answered 16/8, 2010 at 4:56 Comment(0)
H
0

I've been pretty happy with both deMonster's debugger, albeit it's a bit hefty to set up. A little lighter is the XRay admin tool, (http://osflash.org/xray), which still requires some setup. (including classes, special trace statements, etc.)

To be honest, what I usually use is the flash Debug player and Vizzy, which allows you to apply a live filter to the debug messages. Although it doesn't allow you exclude words, prepending a word to your traces could make everything that you don't explicitly trace disappear. For instance, you could filter by [custom], then just find and replace "trace(" with "trace('[custom]',".

Hope that helps, or inspires you.

Headspring answered 2/9, 2010 at 4:35 Comment(0)
W
0

When Using the Flash Develop plugin called FDtrace, I don't see these.

Wellesley answered 12/9, 2010 at 4:48 Comment(0)
F
0

Ran into the same annoying issue and added a feature request on adobe bug base; please vote for it: https://bugbase.adobe.com/index.cfm?event=bug&id=3761359

Faucal answered 19/5, 2014 at 7:55 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.