04-29-2011
On Linux, I liked ddd. The new generation of programmer would likely go for Eclipse IDE.
Loïc
9 More Discussions You Might Find Interesting
1. IP Networking
Dear Users:
I'm trying to find a software based Unix Router. I only want to bridge two subnets, and I'm not trying to share an internet connection. Ultimately, I'm looking for the sourcecode so that I can compile it for Mac OS X, which is the machine that the we want the router to run on. I'd... (4 Replies)
Discussion started by: emulator
4 Replies
2. Cybersecurity
I know that it's not necessary to get antivirus software for UNIX operating systems, but could someone please recommend some anyway? Does McAfee make any? (1 Reply)
Discussion started by: ellethompson
1 Replies
3. HP-UX
Hi,
where can i get Hp unix dummy version to use in my home system.iam a newbie to unix.pls let me know if any avilable..Thank you Shruti (6 Replies)
Discussion started by: shruti_mgp
6 Replies
4. Programming
How can I debug a C++ program (unix) that uses a dinamycaly linked library (dlopen(), dlsym())? I mean I want to be able to go through the library code too. I used ddd, but it's not working.
thanks in advance!
nadia (2 Replies)
Discussion started by: nadiamihu
2 Replies
5. UNIX for Advanced & Expert Users
helllo!
I work in Department of Civil Aviation.Our SSR Radar use AlphaServer 800
with unix os.Now, sever can't startup completely.Its error messages are...
Enviromental Monitoring System can't start.
kdaemon progam not running.
network name and login name don't match.
I can enter login and... (5 Replies)
Discussion started by: akzin
5 Replies
6. UNIX for Dummies Questions & Answers
hi,
im new to unix.i dont have unix software in my system.
Is there any website is there to practice unix in online
can u please any one help me......
thanks in advance (3 Replies)
Discussion started by: gowridoc
3 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
From where can i get the UNIX Software so that i can install the same in my Laptop.
Thanks
Dilip (2 Replies)
Discussion started by: DilipPanda
2 Replies
8. UNIX for Dummies Questions & Answers
I used to have a free software on my computer to practice unix. Unfortunately, I had to rebuild the laptop after it was infected by a virus. Now I cannot remember the website where to download the software. Can anyone point me to a site?
Thanks! (2 Replies)
Discussion started by: Ernst
2 Replies
9. Shell Programming and Scripting
Hi,
Is there any debugging tool for Unix Shell Script like we have gdb in C/C++?
Also please let me know how to close the thread is it automatic or we have to close it manually.
Thanks and Regards (1 Reply)
Discussion started by: diehard
1 Replies
LEARN ABOUT DEBIAN
moose::cookbook::extending::debugging_baseclassrole
Moose::Cookbook::Extending::Debugging_BaseClassRole(3pm)User Contributed Perl DocumentatioMoose::Cookbook::Extending::Debugging_BaseClassRole(3pm)
NAME
Moose::Cookbook::Extending::Debugging_BaseClassRole - Providing a role for the base object class
VERSION
version 2.0603
SYNOPSIS
package MooseX::Debugging;
use Moose::Exporter;
Moose::Exporter->setup_import_methods(
base_class_roles => ['MooseX::Debugging::Role::Object'],
);
package MooseX::Debugging::Role::Object;
use Moose::Role;
sub BUILD {}
after BUILD => sub {
my $self = shift;
warn "Made a new " . ( ref $self ) . " object
";
};
DESCRIPTION
In this example, we provide a role for the base object class that adds some simple debugging output. Every time an object is created, it
spits out a warning saying what type of object it was.
Obviously, a real debugging role would do something more interesting, but this recipe is all about how we apply that role.
In this case, with the combination of Moose::Exporter and Moose::Util::MetaRole, we ensure that when a module does "use MooseX::Debugging",
it automatically gets the debugging role applied to its base object class.
There are a few pieces of code worth looking at more closely.
Moose::Exporter->setup_import_methods(
base_class_roles => ['MooseX::Debugging::Role::Object'],
);
This creates an "import" method in the "MooseX::Debugging" package. Since we are not actually exporting anything, we do not pass
"setup_import_methods" any parameters related to exports, but we need to have an "import" method to ensure that our "init_meta" method is
called. The "init_meta" is created by "setup_import_methods" for us, since we passed the "base_class_roles" parameter. The generated
"init_meta" will in turn call Moose::Util::MetaRole::apply_base_class_roles.
sub BUILD {}
after BUILD => sub {
...
};
Due to the way role composition currently works, if the class that a role is composed into contains a "BUILD" method, then that will
override the "BUILD" method in any roles it composes, which is typically not what you want. Using a method modifier on "BUILD" avoids this
issue, since method modifiers compose together rather than being overridden. Method modifiers require that a method exists in order to
wrap, however, so we also provide a stub method to wrap if no "BUILD" method exists in the class.
AUTHOR
Moose is maintained by the Moose Cabal, along with the help of many contributors. See "CABAL" in Moose and "CONTRIBUTORS" in Moose for
details.
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Infinity Interactive, Inc..
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-06-28 Moose::Cookbook::Extending::Debugging_BaseClassRole(3pm)