473,698 Members | 2,180 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Debugging simple script under Aptana

Hi,

First, is this an appropriate NG for talking about debugging
JavaScript in Aptana?

Assuming it is, I'm trying to get a script to read an external text
file and display the text somehow. The script just dies in the file-
read operation, with no symptom. I tried unsuccessfully to get the
Debugger to run the HTML file.

I put up the following on my personal website:

1. The HTML file: http://home.comcast.net/~CaptQueeg/DemoFileIO.html
2. Some Aptana settings: http://home.comcast.net/~CaptQueeg/A...ugSettings.jpg

Did any obvious mistakes jump out at you? Do my Aptana settings
suggest a reason why I can get anything happening under the debugger?

Thanks in Advance,
Richard

Key software: WinXP-Pro/SP2, FireFox 2.0.0.6, Firebug IE 7.0, Apatana
0.2.9.16696, Java JVM 1.5.0_11-b03

Other S/S: Ruby 1.8.2-15, Rails 1.1.6, Gem 0.9, MySQL 5.0.27-nt,
SciTE 1.72, SeaMonkey 1.1.4, OE 6.0, IE7,Apache Tomcat/5.5.12,
MS Office 2003 SP2, MSDevEnv 2002 v. 7.0.9466. .NET Frwk 1.0,
AVG-Free 7.5.476, Prevx1 2.0.2.23, Startup Cop Pro 2.03

Sep 15 '07 #1
4 3153
RichardOnRails said the following on 9/14/2007 8:36 PM:
Hi,

First, is this an appropriate NG for talking about debugging
JavaScript in Aptana?
Probably not and if my curiosity hadn't got the best of me wanting to
know what Aptana was I wouldn't even have replied.
Assuming it is, I'm trying to get a script to read an external text
file and display the text somehow. The script just dies in the file-
read operation, with no symptom. I tried unsuccessfully to get the
Debugger to run the HTML file.
The problem is your call to the undefined fopen function. fopen is,
typically, a PHP function that opens a file. If you want to read/write
to the local file system then you might try the group FAQ which has an
entry dedicated to this very question:

<URL: http://jibbering.com/faq/index.html#FAQ4 _3>
I put up the following on my personal website:

1. The HTML file: http://home.comcast.net/~CaptQueeg/DemoFileIO.html
2. Some Aptana settings: http://home.comcast.net/~CaptQueeg/A...ugSettings.jpg

Did any obvious mistakes jump out at you?
The error message was very intuitive as it pointed straight at the fopen
call.
Do my Aptana settings suggest a reason why I can get anything happening under the debugger?
No idea unless Aptana has a callable fopen function.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Sep 15 '07 #2
On Sep 14, 10:04 pm, Randy Webb <HikksNotAtH... @aol.comwrote:
First, is this an appropriate NG for talking about debugging
JavaScript in Aptana?

Probably not and if my curiosity hadn't got the best of me
I've heard it killed a cat. This time it snared a knowledgeable
answer. I glad for that.
The problem is your call to the undefined fopen function. fopen is,
typically, a PHP function that opens a file.
I'm new to JavaScript and Aptana. I found an example on the Web
offering this code, but I didn't see any mention of PHP. But thanks
for alerting me to the problem.
<URL:http://jibbering.com/faq/index.html#FAQ4 _3>
Nice site; thanks.

I've just found some AJAX routines that may serve my purpose despite
FAQ 43; I'll see.
The error message was very intuitive as it pointed straight at the fopen
call.
You're so right. I never noticed that red warning in the Status Bar.
I know from the alerts the the "fopen" line was problematic, but I
didn't know exactly what the problem was. Thanks for pointing that
out, Randy.

Best wishes,
Richard
Sep 15 '07 #3
RichardOnRails said the following on 9/14/2007 10:35 PM:
On Sep 14, 10:04 pm, Randy Webb <HikksNotAtH... @aol.comwrote:
><URL:http://jibbering.com/faq/index.html#FAQ4 _3>
Nice site; thanks.

I've just found some AJAX routines that may serve my purpose despite
FAQ 43; I'll see.
If you are trying to open a local file on the client machine then AJAX
isn't the solution. It will "work" when testing locally but it won't
work when testing from a server. Or, are you trying to open a file on
the server?

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Sep 15 '07 #4
On Sep 15, 12:07 am, Randy Webb <HikksNotAtH... @aol.comwrote:

Hi Randy,

Thanks for your follow-up.
If you are trying to open a local file on the client machine then AJAX
isn't the solution. It will "work" when testing locally but it won't
work when testing from a server. Or, are you trying to open a file on
the server?
Initially, I'm working on my client machine, where the text file is
in the same directory as the HTML file, or a sub-directory.

When I put it up on a web server, the same relationship will obtain.

I haven't worked on that today, because I got distracted by another
question: how to have multiple <script type="text/javascript"
src= ...entries. I just solved that, so my day ends nicely.

Regards,
Richard

Sep 16 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1568
by: Dale | last post by:
Windows XP, Apache 2.0.54, PHP 5.0.4, MySQL 4.1 running on my local machine I want to migrate to more sophisticated debugging: setting breakpoints, watching variables, step into/over, etc. I installed PHPEdit 1.2.3.159 and discovered I have to install a separate debugger. I downloaded dbg-2.11.32-win32-php5, copied the file php_dbg.dll.5.0.3 to c:\php5\ext\php_dbg.dll (I realize I'm running 5.0.4 but 5.0.3 appears to be the latest...
25
4313
by: Jeff | last post by:
Use the MS Script Editor included free with MS Office 2002 and above, for debugging Internet Explorer (IE). This subject is of great interest to many JS developers, as there is no obvious, low cost way to do sophisticated debugging in IE6 other than to use the debugger described below, which is horribly documented otherwise. I feel debugging is an important aspect of projecting the useability of the language and needs to be made more...
0
3223
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs converted/developed with VB.NET. What I want from debugging is to be able to step into the methods in the DLLs called from ASP scripts using Visual Studio .NET. Background: For typical script debugging issues, you can read and follow the two documents on...
23
3198
by: keyser_Soze | last post by:
I have MS Visual Studio 2003 on Windows XP Pro. I have IIS running on this machine and I am trying to debug some existing code which has both ASP and ASP.NET components. When I try and launch the debugger from VS, I am told it can't because the project is of output type class library. The error indicates I should set the start action to start external program or start URL. I tried both of these and cannot seem to get the debugger to...
1
1248
by: Jim Land | last post by:
Anyone using Aptana? Opinions about it? It's a web development IDE for JS, HTML, and CSS. Cross-platform, free & open source. http://www.aptana.com/index.php
4
2344
by: Greg | last post by:
I have a very simple Visual Basic .NET 2003 class library project ClassLibrary1 configured to run an external program (in this case C:\WINDOWS\system32\wscript.exe), in the Debugging Configuration Properties Dialog Box with command line arguments C:\test.vbs. When I run the project, I get an "unable to start debugging" error "unable to start program 'C:\WINDOWS\system32\wscript.exe'". Why do I get this error and how can I solve it? ...
3
2538
by: levilista | last post by:
I just downloaded firebug and watched a video, how to debug javascript, but it doesn't work for me. If I set a breakpoint, it won't stop there, even if I reload the page.
1
1564
by: JCD | last post by:
Hello. I 'm trying to use Aptana as a plugin of Eclipse. I have the free version and it works fine but I can't get the message when there is an exception when I run the javascript code. Can someone help me? thank you.
6
2069
by: Morgan Packard | last post by:
Hello, Wondering what everyone's experience with breakpoint debugging is here. I've been using firebug for a few years and, while I'm delighted to have _some_ debugging ability, I've found it to be very fussy, difficult to know when it's going to work or not. I'm curious how others approach debugging, and if anyone here feels they are able to use a breakpoint debugger reliably. thanks,
0
8601
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9156
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9021
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8892
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8860
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4365
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2327
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1998
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.