Is there something like firebug for actionscript? [closed] - actionscript

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm totally new to actionscript,
and such a tool like firebug will really help a lot!

I like very much MonsterDebugger, easy to use, for Flash, Flex, AIR.
Check it out here - http://www.monsterdebugger.com/

Alcon is a lightweight debugging tool
for ActionScript developers that
provides several straightforward and
quickly accessible methods to debug
any ActionScript 2 or ActionScript 3
application, be it from the Web
Browser, the standalone Flash Player
or an AIR Runtime.
Alcon
Introducing the ActionScript 3.0 debugger
Trace and debug ActionScript from your browser

If you're developing Flex or Air applications then I would definitely recommend the Eclipse
IDE with the Flex SDK plugin.
http://www.adobe.com/products/flex/flexdownloads/

If you're using the Flash environment try pressing Control-Shift-Enter to launch your swf. This will open up the debugger (press the green arrow to begin code execution).
If you're using Flex Builder you will have a full fledged debugger at your disposal.
In either environment you can set break points, these are points you can specify in your code where code execution needs to halt so you can investigate what's going on.

You can use LocalConnection class to communicate with other swfs. I use this concept for viewing traced messages in browser.
Create a debugger SWF that accepts local connection requests and displays all the incoming text in a text area.
Write a Debug class with a static write method that sends the incoming text to the debugger thru local connection (and optionally traces the message).
Include the Debug class in your app and replace all trace calls with Debug.write
(Optional) Write fancy methods writeError writeWarning that displays the important messages in different colors.
Run the debugger swf in the browser.
I have the code for these, but does SO allow posting files? The code grew a little long when I implemented searching and highlighting the console with regex.

If you're using command-line tools (rather than flex builder or flashIDE) you can use the command-line debugger, FDB. You can find it in your flexSDK/bin folder. There is plenty of documentation out there for this (fairly frustrating) tool.

http://blog.coursevector.com/flashbug

Related

How to run chrome browser in grid using windows as hub and mac and ipad as nodes?

Hub: Windows 64-bit Nod: Mac/Ipad
I'm looking to automate chrome browser in mac and ipad and add to our selenium grid running on windows, c# scripts. Please advise. And also if appium is required and does it have to run the server on a mac for the ios testing?
*I'm modeling my question after the link below as clearly others have been able to convey the question just fine, yet every time I've asked I've been flagged as not asking properly, and now there's a notice threatening to block me? Mystified as to why I'm receiving different treatment, please explain how this is not clear and allow for commenting. Isn't that what comments are for anyways?
update due to lack of comment status
Please note my follow up question on Appium with a narrower scope: is appium is required and does it have to run the server on a mac for the ios testing? Y/N- That doesn't get any narrower. Plus I can't run code and get errors without having the correct tools setup. Otherwise there is little documentation available on this out there, and what there is is either not great or older, and all are running java code on the mac which is not the .net windows setup we have. Even though the rules may have changed, clearly breadth isn't an issue as people seem to understood other broad questions just fine. I've done several days of research on this.
How to run chrome browser in grid using MAC as hub and Windows as Nod?
**Obviously this has been hashed before
Why is Stack Overflow so negative of late?. I would add downvoting and not answering questions no matter how noob kinda goes against the very core mission answer sites have--answering questions. If this site won't, some other site will.
Let me try to Answer your Questions one by one :
I'm looking to automate chrome browser in mac and ipad and add to our selenium grid running on windows, c# scripts. Please advise. : Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
If appium is required and does it have to run the server on a mac for the ios testing : Automating Web Application requires only Selenium. If you are automating Mobile Application you have to go with Appium.
Every time I've asked I've been flagged as not asking properly, and now there's a notice threatening to block me? Mystified as to why I'm receiving different treatment : Answer is same as #JeffC mentioned in his comment Your question is way too broad and doesn't show any research. The question you linked is from 2013 and the rules were different back then. Do some research and try to accomplish what you are asking. If you run into an issue, research that specific issue and see if you can overcome it. If you can't, come back and ask a question around that specific issue with supporting information, research, code, samples, etc. and we can help you. As it current stands, your question will get closed for being too broad.
Is appium is required and does it have to run the server on a mac for the ios testing? : Appium is required and you can run it on your Desktop/Local Systsem as well.
I can't run code and get errors without having the correct tools setup : Every Automation Engineer starts with a similar situation. So you are on the right track.
There is little documentation available on this out there, and what there is is either not great or older : Help us (stackoverflow.com) to prepare more documentation.
I've done several days of research on this How to run chrome browser in grid using MAC as hub and Windows as Nod? : The question was raised as early as Jul 9 '13 at 14:19. Almost half a decade back. By now you should have made your hands dirty with Hard Disk full of Code
Obviously this has been hashed before Why is Stack Overflow so negative of late? : If you have any concern feel free to raise it at StackOverflow - Meta
Solution
It is never late to start anything new. Start writing your code. Get your fingers dirty. Feel free to raise any Technical Question where you get stuck. StackOverflow volunteers will be happy to help you out.

Swift pasted from iBooks into Xcode playground doesn't work [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 8 years ago.
Improve this question
I'm learning Swift from the Apple Swift book on iBooks, and code pasted into an Xcode playground from the book does not work. The code needs to be completely re-typed to work. Is there any way around this?
As #matt commented, you're better off working from the Xcode documentation window or the HTML version of the book in a web browser. iBooks, despite being an electronic medium, uses a lot of formatting tricks from the print publishing world that put invisible, illegal-for-Swift characters in the text.
You can find the web version of The Swift Programming Language on developer.apple.com. Ditto for the other Apple Swift iBook, Using Swift with Cocoa and Objective-C, and a lot of other documentation (Swift-specific and otherwise) that isn't on iBooks. You can copy-paste from the web version of the docs without getting invisible garbage characters.
You can also download the first chapter in TSPL, "A Swift Tour", as a runnable playground, so for that you can save the copy-pasting/typing entirely.
The command less by default will show you special characters. You can pipe the output of pbpaste to less to see true state of your clipboard. (The option -X prevents the screen from clearing which is good for capturing shell transcripts.)
You'll be copying soft returns from the book instead of proper line endings. In the text editor, turn on invisible characters, and look at the difference between the line ending character and the one that appears when you press return.
iBooks does nasty things when you copy-paste (adding attribution, for example) so it's not great for copying code from.

Logging Framework for iOS? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Is there a logging framework for iOS that could aid developers in diagnosing app crashes?
You may like:
Lumberjack: stable and traditional
"It is similar in concept to other popular logging frameworks such as log4j, yet is designed specifically for Objective-C, and takes advantage of features such as multi-threading, grand central dispatch (if available), lockless atomic operations, and the dynamic nature of the Objective-C runtime."
LibComponentLogging: beautiful and hardcore, used by RestKit
"LibComponentLogging is a small logging library for Objective-C applications on Mac OS X and the iPhone OS which provides conditional logging based on log levels and log components. Additionally, different logging strategies can be used, e.g. writing log messages to a file or sending them to the system log, while using the same logging interface."
NSLogger: fancy with a dedicated visualization OS X App
"NSLogger is a high perfomance logging utility which displays traces emitted by client applications running on Mac OS X or iOS (iPhone OS). It replaces your usual NSLog()-based traces and provides powerful additions like display filtering, image and binary logging, traces buffering, timing information, etc."
I know this post is old but I'm looking for one as well. I found one called Lumberjack, though I haven't tried it yet.
I created a simple logging framework that might help. I'd appreciate any feedback you have. Hope it helps.
Link to Project Page
This previous question seems to overlap. But the bottom line is:
NSLog(#"message");
or:
printf("message");
I have a slightly different need: not only do I want to debug crashes, but I also need to debug other errors (NSError, NSException).
I tried all 3 packages mentioned in IlDan's answer. However, all of them require me to adopt a new way of logging, which may not be compatible with the libraries I depend on. For example, I intended to adopt NSLogger but RestKit, which is an important library in my project, uses LibComponentLogging.
So I ended up with writing a small pod (https://github.com/kennethjiang/Teleport-NSLog) for that. The mechanism is to redirect stderr (where NSLog + all these logging frameworks write messages to) to a backend HTTP server. Now I can debug my app running in user's device just as if it was running in my xcode. :)
For basic logging use NSLog(#"your message here")
If you want more flexible logging look into Lumberjack. It can let you disable logging in production etc etc.

HCI challenges of Web 2.0 [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
What are the HCI challenges of Web 2.0?
Here are a few more:
Clear privacy options
Facebook has repeatedly changed the way it deals with content ownership and privacy. (See here, here and here.) Aside from the obvious PR gaffes, this has also demonstrated the difficulty users have understanding privacy.
Geeks like us are familiar with ideas of inheritance and groups. Heck, many of us work explicitly with permission structures when dealing with files on *nix systems. To most users though, it's not clear who can see what or why.
Service Interoperability
On the desktop we're used to being able to chain together tools to get the outcome we want. A simple example would be dragging image thumbnails from a file explorer to an image editor. We'd expect that to work, but not on the web
The Flock browser goes some way to overcome this shortfall, as does the Google Docs web clipboard, but interaction between web services is still a long way off what we expect from the desktop.
Accessibility
Web 1.0 was primarily text based, so the main accessibility issues were easy to fix: stuff like text as images and tables for layout, which both affect screen-readers used by the blind.
As the content of the web gets richer (more images, video and audio), the chances get larger that someone will be excluded from it. Moreover, making video and audio accessible is much harder than making text or images accessible, so it's much less likely to be done.
Lastly, Web 2.0 introduced a whole new problem for accessibility: dynamic content. How should screen-readers (for example) deal with new content appearing on a page after an AJAX query? WAI-ARIA aims to address these issues, but they still require the web-designer to implement them.
Hope this was useful.
There are plenty as I see it,
Different screen resolutions.
Different hardware capabilities. (mobile; touch; desktop; laptop; soon orientation too.)
Localized content.
Location based.
With HTML5 upcoming, hardware acceleration; native api's; localstorage; offline.

Am i allowed to use c++ in code which i plan to submit to applestore? (iPhone Product) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 5 years ago.
Improve this question
I've heard that apple drops a lot of app submissions due to their stiff terms.
I dont want to get too far with my project because i know that it will be hard
to rewrite it later.
Now i began rewriting it to Objective-C (from c++) because i got somehow the
impression that apple takes only pure objective-c code. In some places on the
net, people offers solutions in c\c++ for problems which cannot be solved
with objective-c which makes me kinda think rewriting again.
In order to clear things out, can someone please give me a direction to where can
i find those iphone-code-terms of apple?
You can use C++ or Objective C++ in an iPhone app for the AppStore. There's no problem with that. Obviously you'll need some Objective C or Objective C++ in order to present a UI to the user, but everything else can be straight C++ if you're so inclined. Many applications (particularly game ports) take this approach, using C/C++ code developed on other platforms, and 'wrapping' it in an Objective C shell.
You can use any language you like, provided it is compiled code. Interpreters are banned, which means no Python or Ruby... but you can use Lua, lisp, C, C++, Obj-C, Java (using something like gcj, not a JVM), D, Haskell, or anything else that can compile to ARM code or a static LLVM backend.
At least the SpeakHere sample application makes extensive use of C++. If that has, chances are that many sample apps do (and hence that your app may use C++/Objective-C++).
Objective C is a super set of C++, so it should be no problem if you use C++. The full terms and condition are at http://developer.apple.com/iphone which is a must for any iPhone developer. The SDK is part of the 99US$ membership and includes tools you will need, such as the iPhone simulator and tools to allow you to test your app on your real iPhone. Additionally, you will need this membership to submit your app to the appstore.

Resources