ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> visualperl-discuss
visualperl-discuss
Re: [Visualperl-discuss] remote debugger gives error and 'use' is not working
by Eric Promislow other posts by this author
Apr 15 2005 10:49AM messages near this date
view in the new Beta List Site
[Visualperl-discuss] remote debugger gives error and 'use' is not working | RE: [Visualperl-discuss] debugging Perl on Windows 2003 with Visu al Studio.NET 2003 editio n
Tom Humphrey wrote:
>  Hello,
>  
>   I have been programming with Komodo for the past few years and just 
>  recently purchased Visual Perl. I would like some assistance with 
>  getting my hello world program to run smoothly. This script runs 
>  perfectly from Komodo.
>  
>  Here is my simple script:
>  
>  #!/usr/bin/perl -w
>  use strict;
>  BEGIN {push(@INC, "c:\\foo\\bar");}
>  #use Foobar; # Foobar.pm exists in c:\foo\bar, so why the compile error?
>  require Foobar;
>  print "Hello World!\n";
>  
>  
>  1. Error messages that popup when I run the script: (I have no idea what 
>  these are but I definitely do not want remote debugging (or at least I 
>  don't think I do - am i missing a design concept here?)).
>  
>  "Waiting for the Perl debugger session to start, at port 3000. Please 
>  press the Cancel button to stop waiting."

Is Project-properties|Debugging|DebugMode set to "Project"?

>  
>  "Attaching the Visual Perl DE debugger to process '[2944] 
>  sl_perl_debugger.exe' on machine 'PAVILION' falied. Error code 0x80004005."

This is a Visual Studio message that pops up when the Perl debugger
ends prematurely.  We haven't found a way to squelch it.

>  
>  2. When 'use' is in effect it gives a compile error. 'require' works 
>  just fine. How can I get 'use' statements to work? I do not want 'require'.

I couldn't duplicate the error.  Is there no other instance of
"Foobar.pm" that the interpreter could be picking up instead?
Does your module end with a "1;" or some other truthful value?

>  
>  3. I noticed that I can set the @INC variable in 
>  project->properties->configuration properties->perl options. I can still 
>  do it the old-fashioned way right? Well, either way I get an error with 
>  my 'use' statement.
>  
>  4. when it prints "Hello World" to a console, the console pops up for a 
>  split second and disappears. What is up with that? There isn't a "push 
>  button to continue" or anything. Also, how can I have the program output 
>  go to the output pane in the IDE?

VS doesn't have a builtin pause mode for Console applications -- if you
build a hello world app in C#, VB.Net, C++, etc., you'll get the
same behavior.  We actually incorporated a pause at the end of
running a program outside the debugger, but not in the debugger.  Is
it not working?

>  
>  5. Getting help! I am sorry if this is not the correct forum to address 
>  these issues. Please direct me to the proper resources so I can figure 
>  this stuff out myself.

This list is the best place.

>  
>  6. Where can I read up on the differences between a Managed DLL Library 
>  (isn't that redundant?), a Control Library, a Executable, a Managed Exe, 
>  a Project, etc. I am not sure how these things operate within the .NET 
>  framework. What is each one good for? Where is their documentation? 
>  Unfortunately, 
>  http://aspn.activestate.com/ASPN/docs/VisualPerl/manual.html and 
>  http://aspn.activestate.com/ASPN/docs/VisualPerl/demo.html are not 
>  satisfying my issues. Any more help?

http://www.amazon.com/exec/obidos/ASIN/0130652067/qid%3D1025293038/sr%3D8-1/ref%3Dsr%5F8%5F1
/103-2933687-4567804
(http://tinyurl.com/a3d42)

Current used price is $10.59 -- the first half of the book just
recapitulates an intro to Perl, but Yevgeny goes deeper into
Perl.Net in the second half.

For a glossary:

"Managed DLL Library" =>  PerlNet .Net object, with 2-way interaction with .Net
"Control Library" =>  PerlCtrl COM object
"Executable" =>  Perlapp exe
"Managed Exe" =>  PerlNet EXE, with access to the .Net framework
"Project" =>  the standard Perl interpreter
"Tray Application" and "Windows Service" map to PerlTray and PerlSvc

- Hope this helps


>  
>  
>  Thanks a bunch, I appreciate any help I can get.
>  
>  Regards,
>  
>  Tom Humphrey
>  
>  
>  _______________________________________________
>  VisualPerl-discuss mailing list
>  VisualPerl-discuss@[...].com
>  To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
VisualPerl-discuss mailing list
VisualPerl-discuss@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Tom Humphrey
Eric Promislow

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved