How can I setup a dev environment for OTRS?

Hi, I'm trying to setup a dev env for OTRS on Windows and I'm new to Perl. After some poking around for a few days trying to understand Perl distributions and development, I'm still pretty much where I started. If a guide for setting up a specific dev env is available, can someone please provide me with its URL? If such a guide is not available, please help with the following direct questions: 1. Is OTRS dev normally done via an IDE, and if so what is the preferred one? I tried to find an ide-project like grouping in the OTRS sources and couldn't spot one. 2. Is it possible to load all the source files in an editor capable of finding method / object definitions? (I don't mean full text search but something like Intellisense) 3. Is interactive debugging possible for OTRS? By this I mean setting breakpoints and exploring values for variables when a breakpoint is hit. 4. Is there such a thing as syntax check, source compilation or unit testing so that I can be as sure as possible that changes I've made do not immediately crash when they are executed? I'm familiar with the dev workflow from Visual Studio (C#) and Eclipse (Java) and hoping to achieve something similar with OTRS, if possible. If someone can answer and is also familiar with those IDEs, please use them for comparison. Thanks, Bogdan What I've already done: - Got the sources from a zip package ( http://ftp.otrs.org/pub/otrs/otrs-3.1.9.zip) because a direct CVS link doesn't work from my organization (port 2401 is blocked). - Looked over the dev manual ( http://ftp.otrs.org/pub/otrs/doc/doc-admin/3.1/en/pdf/otrs_admin_book.pdf) and Searched the mailing lists (http://lists.otrs.org/pipermail/dev/) with Google. Couldn't find any references to an IDE. - Found info about debugging a running OTRS env by enabling a debug mode where I would get a lot of info logged to files.

The minimal IDE for Pel on WIndows is ECLIPS whit plugin EPIC. But the features are minimal compared to C # and Java in any case it is possible with a series of best pactice ,available on the network, debug the perl module Bye Rocco Il 10/09/2012 11.12, Bogdan Iosif ha scritto:
Hi,
I'm trying to setup a dev env for OTRS on Windows and I'm new to Perl. After some poking around for a few days trying to understand Perl distributions and development, I'm still pretty much where I started.
If a guide for setting up a specific dev env is available, can someone please provide me with its URL?
If such a guide is not available, please help with the following direct questions:
1. Is OTRS dev normally done via an IDE, and if so what is the preferred one? I tried to find an ide-project like grouping in the OTRS sources and couldn't spot one. 2. Is it possible to load all the source files in an editor capable of finding method / object definitions? (I don't mean full text search but something like Intellisense) 3. Is interactive debugging possible for OTRS? By this I mean setting breakpoints and exploring values for variables when a breakpoint is hit. 4. Is there such a thing as syntax check, source compilation or unit testing so that I can be as sure as possible that changes I've made do not immediately crash when they are executed?
I'm familiar with the dev workflow from Visual Studio (C#) and Eclipse (Java) and hoping to achieve something similar with OTRS, if possible. If someone can answer and is also familiar with those IDEs, please use them for comparison.
Thanks, Bogdan
What I've already done:
- Got the sources from a zip package (http://ftp.otrs.org/pub/otrs/otrs-3.1.9.zip) because a direct CVS link doesn't work from my organization (port 2401 is blocked).
- Looked over the dev manual (http://ftp.otrs.org/pub/otrs/doc/doc-admin/3.1/en/pdf/otrs_admin_book.pdf) and Searched the mailing lists (http://lists.otrs.org/pipermail/dev/) with Google. Couldn't find any references to an IDE.
- Found info about debugging a running OTRS env by enabling a debug mode where I would get a lot of info logged to files.
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
-- Rocco Tocci Application Architect Strada Prov. 1 BariModugno n. 4 70123 Bari Italy Tel. +39 0803855483 TBS IT -- Telematic & Biomedical Services Srl a socio unico Sede Legale : Via Giacinto Gallina, 4 -- 34122 Trieste Tel. 040 - 92291 Sede Operativa : Via Francesco Bettini, 13 -- 06034 Foligno Tel. 0742- 32661 C.F., P.IVA e Registro Imprese (TS) : 01165260322 Cap.Soc. EUR 8.000.000,00 i.v. una società di TBS Group SpA Ai sensi del D.Lgs. 196/2003 e della normativa internazionale, vi informiamo che questo messaggio è riservato esclusivamente al destinatario. Se esso vi fosse pervenuto per errore, vi invitiamo a eliminarlo immediatamente e a darcene comunicazione. Grazie. According to the Italian and international laws in force, we inform you that this message is reserved only for the addressee. If you are not the addressee, please delete it immediately and notify us. Thank you. P Per favore, pensa all'ambiente prima di stampare questo messaggio. Please, consider the environment before printing this e-mail.

10x. I'll try using the EPIC plugin.
So far I've installed Padre (the DWIM Perl for Windows combo) and haven't
managed to open/edit the sources in any way more meaningful than what I
could already accomplish in Notepad++.
On Mon, Sep 10, 2012 at 12:24 PM, Rocco Tocci
The minimal IDE for Pel on WIndows is ECLIPS whit plugin EPIC. But the features are minimal compared to C # and Java in any case it is possible with a series of best pactice ,available on the network, debug the perl module
Bye Rocco
Il 10/09/2012 11.12, Bogdan Iosif ha scritto:
Hi,
I'm trying to setup a dev env for OTRS on Windows and I'm new to Perl. After some poking around for a few days trying to understand Perl distributions and development, I'm still pretty much where I started.
If a guide for setting up a specific dev env is available, can someone please provide me with its URL?
If such a guide is not available, please help with the following direct questions:
1. Is OTRS dev normally done via an IDE, and if so what is the preferred one? I tried to find an ide-project like grouping in the OTRS sources and couldn't spot one. 2. Is it possible to load all the source files in an editor capable of finding method / object definitions? (I don't mean full text search but something like Intellisense) 3. Is interactive debugging possible for OTRS? By this I mean setting breakpoints and exploring values for variables when a breakpoint is hit. 4. Is there such a thing as syntax check, source compilation or unit testing so that I can be as sure as possible that changes I've made do not immediately crash when they are executed?
I'm familiar with the dev workflow from Visual Studio (C#) and Eclipse (Java) and hoping to achieve something similar with OTRS, if possible. If someone can answer and is also familiar with those IDEs, please use them for comparison.
Thanks, Bogdan
What I've already done:
- Got the sources from a zip package ( http://ftp.otrs.org/pub/otrs/otrs-3.1.9.zip) because a direct CVS link doesn't work from my organization (port 2401 is blocked).
- Looked over the dev manual ( http://ftp.otrs.org/pub/otrs/doc/doc-admin/3.1/en/pdf/otrs_admin_book.pdf) and Searched the mailing lists (http://lists.otrs.org/pipermail/dev/) with Google. Couldn't find any references to an IDE.
- Found info about debugging a running OTRS env by enabling a debug mode where I would get a lot of info logged to files.
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
-- Rocco Tocci Application Architect Strada Prov. 1 BariModugno n. 4 70123 Bari Italy Tel. +39 0803855483
TBS IT – Telematic & Biomedical Services Srl a socio unico Sede Legale : Via Giacinto Gallina, 4 – 34122 Trieste Tel. 040 - 92291 Sede Operativa : Via Francesco Bettini, 13 – 06034 Foligno Tel. 0742- 32661 C.F., P.IVA e Registro Imprese (TS) : 01165260322 Cap.Soc. € 8.000.000,00 i.v. una società di TBS Group SpA
Ai sensi del D.Lgs. 196/2003 e della normativa internazionale, vi informiamo che questo messaggio è riservato esclusivamente al destinatario. Se esso vi fosse pervenuto per errore, vi invitiamo a eliminarlo immediatamente e a darcene comunicazione. Grazie. According to the Italian and international laws in force, we inform you that this message is reserved only for the addressee. If you are not the addressee, please delete it immediately and notify us. Thank you. P Per favore, pensa all'ambiente prima di stampare questo messaggio. Please, consider the environment before printing this e-mail.
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Hi,
Setting up the 'dev' environment is pretty much the same as setting up
a 'regular' OTRS environment; you would set up an OTRS environment
including database and web server on your local machine.
For editing the files you can use pretty much any editor, some people
use complete IDE's such as ActiveState's Komodo IDE, Eclipse EPIC or
similar, or Padre, some people prefer to use text editors such as vim
with lots of plugins, or even simply Notepad++.
If you do OTRS development you typically do not use a debugger all
day; and inspecting elements can be achieved by printing them to
STDERR and looking in the server error log and/or using Fred
(http://ftp.otrs.org/pub/otrs/develtools/packages/); or by logging
them to the LogObject in OTRS.
Hope this helps.
--
Mike
On Mon, Sep 10, 2012 at 11:12 AM, Bogdan Iosif
Hi,
I'm trying to setup a dev env for OTRS on Windows and I'm new to Perl. After some poking around for a few days trying to understand Perl distributions and development, I'm still pretty much where I started.
If a guide for setting up a specific dev env is available, can someone please provide me with its URL?
If such a guide is not available, please help with the following direct questions:
Is OTRS dev normally done via an IDE, and if so what is the preferred one? I tried to find an ide-project like grouping in the OTRS sources and couldn't spot one. Is it possible to load all the source files in an editor capable of finding method / object definitions? (I don't mean full text search but something like Intellisense) Is interactive debugging possible for OTRS? By this I mean setting breakpoints and exploring values for variables when a breakpoint is hit. Is there such a thing as syntax check, source compilation or unit testing so that I can be as sure as possible that changes I've made do not immediately crash when they are executed?
I'm familiar with the dev workflow from Visual Studio (C#) and Eclipse (Java) and hoping to achieve something similar with OTRS, if possible. If someone can answer and is also familiar with those IDEs, please use them for comparison.
Thanks, Bogdan
What I've already done:
- Got the sources from a zip package (http://ftp.otrs.org/pub/otrs/otrs-3.1.9.zip) because a direct CVS link doesn't work from my organization (port 2401 is blocked).
- Looked over the dev manual (http://ftp.otrs.org/pub/otrs/doc/doc-admin/3.1/en/pdf/otrs_admin_book.pdf) and Searched the mailing lists (http://lists.otrs.org/pipermail/dev/) with Google. Couldn't find any references to an IDE.
- Found info about debugging a running OTRS env by enabling a debug mode where I would get a lot of info logged to files.
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Thanks for the input.
I was "afraid" of that. I'm familiar with this type of debugging from
writing shell scripts running under Jenkins but I've never done debugging
like that for a code base as large as OTRS seems to be.
With shell scripts it was, kind of, simple to assess if the code is valid
because I knew exactly where the script will be invoked from and my only
concern was to explore the context of the call (mainly env vars). With
these Perl scrips, without an IDE that halts execution on a breakpoint or a
possibility to statically explore all callers on an object's method, I find
it hard to imagine how I can ensure a change I make on some of the code
OTRS ships with will not break some code paths or, worse, produce
undesirable side effects.
I assume you mean Apache HTTPD's STDERR. I'll try to setup Fred. I hope
this info is still valid (
http://lists.otrs.org/pipermail/dev/2007-October/001728.html) because I
haven't found much else in the form of a guide on how to use / install it.
/bogdan
On Mon, Sep 10, 2012 at 12:40 PM, Michiel Beijen
Hi,
Setting up the 'dev' environment is pretty much the same as setting up a 'regular' OTRS environment; you would set up an OTRS environment including database and web server on your local machine.
For editing the files you can use pretty much any editor, some people use complete IDE's such as ActiveState's Komodo IDE, Eclipse EPIC or similar, or Padre, some people prefer to use text editors such as vim with lots of plugins, or even simply Notepad++.
If you do OTRS development you typically do not use a debugger all day; and inspecting elements can be achieved by printing them to STDERR and looking in the server error log and/or using Fred (http://ftp.otrs.org/pub/otrs/develtools/packages/); or by logging them to the LogObject in OTRS.
Hope this helps.
-- Mike
On Mon, Sep 10, 2012 at 11:12 AM, Bogdan Iosif
wrote: Hi,
I'm trying to setup a dev env for OTRS on Windows and I'm new to Perl. After some poking around for a few days trying to understand Perl distributions and development, I'm still pretty much where I started.
If a guide for setting up a specific dev env is available, can someone please provide me with its URL?
If such a guide is not available, please help with the following direct questions:
Is OTRS dev normally done via an IDE, and if so what is the preferred one? I tried to find an ide-project like grouping in the OTRS sources and couldn't spot one. Is it possible to load all the source files in an editor capable of finding method / object definitions? (I don't mean full text search but something like Intellisense) Is interactive debugging possible for OTRS? By this I mean setting breakpoints and exploring values for variables when a breakpoint is hit. Is there such a thing as syntax check, source compilation or unit testing so that I can be as sure as possible that changes I've made do not immediately crash when they are executed?
I'm familiar with the dev workflow from Visual Studio (C#) and Eclipse (Java) and hoping to achieve something similar with OTRS, if possible. If someone can answer and is also familiar with those IDEs, please use them for comparison.
Thanks, Bogdan
What I've already done:
- Got the sources from a zip package (http://ftp.otrs.org/pub/otrs/otrs-3.1.9.zip) because a direct CVS link doesn't work from my organization (port 2401 is blocked).
- Looked over the dev manual ( http://ftp.otrs.org/pub/otrs/doc/doc-admin/3.1/en/pdf/otrs_admin_book.pdf) and Searched the mailing lists (http://lists.otrs.org/pipermail/dev/) with Google. Couldn't find any references to an IDE.
- Found info about debugging a running OTRS env by enabling a debug mode where I would get a lot of info logged to files.
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Hi Bogdan, AFAICT you can use Eclipse with the EPIC perl editor that also includes a graphical interface to the Perl debugger, giving you full execution control. I tried that once, but as Mike said it is not really needed in everyday work. Best regards, mg Am 11.09.12 09:09, schrieb Bogdan Iosif:
Thanks for the input.
I was "afraid" of that. I'm familiar with this type of debugging from writing shell scripts running under Jenkins but I've never done debugging like that for a code base as large as OTRS seems to be.
With shell scripts it was, kind of, simple to assess if the code is valid because I knew exactly where the script will be invoked from and my only concern was to explore the context of the call (mainly env vars). With these Perl scrips, without an IDE that halts execution on a breakpoint or a possibility to statically explore all callers on an object's method, I find it hard to imagine how I can ensure a change I make on some of the code OTRS ships with will not break some code paths or, worse, produce undesirable side effects.
I assume you mean Apache HTTPD's STDERR. I'll try to setup Fred. I hope this info is still valid (http://lists.otrs.org/pipermail/dev/2007-October/001728.html) because I haven't found much else in the form of a guide on how to use / install it.
/bogdan
On Mon, Sep 10, 2012 at 12:40 PM, Michiel Beijen
mailto:michiel.beijen@gmail.com> wrote: Hi,
Setting up the 'dev' environment is pretty much the same as setting up a 'regular' OTRS environment; you would set up an OTRS environment including database and web server on your local machine.
For editing the files you can use pretty much any editor, some people use complete IDE's such as ActiveState's Komodo IDE, Eclipse EPIC or similar, or Padre, some people prefer to use text editors such as vim with lots of plugins, or even simply Notepad++.
If you do OTRS development you typically do not use a debugger all day; and inspecting elements can be achieved by printing them to STDERR and looking in the server error log and/or using Fred (http://ftp.otrs.org/pub/otrs/develtools/packages/); or by logging them to the LogObject in OTRS.
Hope this helps.
-- Mike
On Mon, Sep 10, 2012 at 11:12 AM, Bogdan Iosif
mailto:bogdan.iosif@gmail.com> wrote: > Hi, > > I'm trying to setup a dev env for OTRS on Windows and I'm new to Perl. After > some poking around for a few days trying to understand Perl distributions > and development, I'm still pretty much where I started. > > If a guide for setting up a specific dev env is available, can someone > please provide me with its URL? > > If such a guide is not available, please help with the following direct > questions: > > Is OTRS dev normally done via an IDE, and if so what is the preferred one? I > tried to find an ide-project like grouping in the OTRS sources and couldn't > spot one. > Is it possible to load all the source files in an editor capable of finding > method / object definitions? (I don't mean full text search but something > like Intellisense) > Is interactive debugging possible for OTRS? By this I mean setting > breakpoints and exploring values for variables when a breakpoint is hit. > Is there such a thing as syntax check, source compilation or unit testing so > that I can be as sure as possible that changes I've made do not immediately > crash when they are executed? > > I'm familiar with the dev workflow from Visual Studio (C#) and Eclipse > (Java) and hoping to achieve something similar with OTRS, if possible. If > someone can answer and is also familiar with those IDEs, please use them for > comparison. > > Thanks, > Bogdan > > What I've already done: > > - Got the sources from a zip package > (http://ftp.otrs.org/pub/otrs/otrs-3.1.9.zip) because a direct CVS link > doesn't work from my organization (port 2401 is blocked). > > - Looked over the dev manual > (http://ftp.otrs.org/pub/otrs/doc/doc-admin/3.1/en/pdf/otrs_admin_book.pdf) > and Searched the mailing lists (http://lists.otrs.org/pipermail/dev/) with > Google. Couldn't find any references to an IDE. > > - Found info about debugging a running OTRS env by enabling a debug mode > where I would get a lot of info logged to files. > > _______________________________________________ > OTRS mailing list: dev - Webpage: http://otrs.org/ > Archive: http://lists.otrs.org/pipermail/dev > To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev _______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev _______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
-- Martin Gruner Senior Developer R&D OTRS AG Europaring 4 94315 Straubing T: +49 (0)6172 681988 0 F: +49 (0)9421 56818 18 I: www.otrs.com/ Geschäftssitz: Bad Homburg, Amtsgericht: Bad Homburg, HRB 10751, USt-Nr.: DE256610065 Aufsichtsratsvorsitzender: Burchard Steinbild, Vorstand: André Mindermann (Vorsitzender), Christopher Kuhn, Sabine Riedel It's raining... OTRS Feature Add-Ons! Bis zu 10 kostenlose OTRS Feature Add-Ons und professionellen Hersteller-Support -- Werden Sie jetzt Service-Subscription-Kunde!

Hi,
10x. When you tried this, did you have the debugger connect to Apache HTTPD
or were you able to somehow execute OTRS's scripts in a more direct way? As
far as I understood, the Perl interpreter runs in HTTPD's process, via
mod_perl, so a debugger would need to attach to HTTPD in order to work.
I understand your point about not practically needing the above, but it
would give me a warm fuzzy feeling to see it working and know I can do that
for the worst case scenario.
/bogdan
On Tue, Sep 11, 2012 at 10:12 AM, Martin Gruner
Hi Bogdan,
AFAICT you can use Eclipse with the EPIC perl editor that also includes a graphical interface to the Perl debugger, giving you full execution control. I tried that once, but as Mike said it is not really needed in everyday work.
Best regards, mg
Am 11.09.12 09:09, schrieb Bogdan Iosif:
Thanks for the input.
I was "afraid" of that. I'm familiar with this type of debugging from writing shell scripts running under Jenkins but I've never done debugging like that for a code base as large as OTRS seems to be.
With shell scripts it was, kind of, simple to assess if the code is valid because I knew exactly where the script will be invoked from and my only concern was to explore the context of the call (mainly env vars). With these Perl scrips, without an IDE that halts execution on a breakpoint or a possibility to statically explore all callers on an object's method, I find it hard to imagine how I can ensure a change I make on some of the code OTRS ships with will not break some code paths or, worse, produce undesirable side effects.
I assume you mean Apache HTTPD's STDERR. I'll try to setup Fred. I hope this info is still valid ( http://lists.otrs.org/pipermail/dev/2007-October/001728.html) because I haven't found much else in the form of a guide on how to use / install it.
/bogdan
On Mon, Sep 10, 2012 at 12:40 PM, Michiel Beijen
wrote:
Hi,
Setting up the 'dev' environment is pretty much the same as setting up a 'regular' OTRS environment; you would set up an OTRS environment including database and web server on your local machine.
For editing the files you can use pretty much any editor, some people use complete IDE's such as ActiveState's Komodo IDE, Eclipse EPIC or similar, or Padre, some people prefer to use text editors such as vim with lots of plugins, or even simply Notepad++.
If you do OTRS development you typically do not use a debugger all day; and inspecting elements can be achieved by printing them to STDERR and looking in the server error log and/or using Fred (http://ftp.otrs.org/pub/otrs/develtools/packages/); or by logging them to the LogObject in OTRS.
Hope this helps.
-- Mike
On Mon, Sep 10, 2012 at 11:12 AM, Bogdan Iosif
wrote: Hi,
I'm trying to setup a dev env for OTRS on Windows and I'm new to Perl. After some poking around for a few days trying to understand Perl distributions and development, I'm still pretty much where I started.
If a guide for setting up a specific dev env is available, can someone please provide me with its URL?
If such a guide is not available, please help with the following direct questions:
Is OTRS dev normally done via an IDE, and if so what is the preferred one? I tried to find an ide-project like grouping in the OTRS sources and couldn't spot one. Is it possible to load all the source files in an editor capable of finding method / object definitions? (I don't mean full text search but something like Intellisense) Is interactive debugging possible for OTRS? By this I mean setting breakpoints and exploring values for variables when a breakpoint is hit. Is there such a thing as syntax check, source compilation or unit testing so that I can be as sure as possible that changes I've made do not immediately crash when they are executed?
I'm familiar with the dev workflow from Visual Studio (C#) and Eclipse (Java) and hoping to achieve something similar with OTRS, if possible. If someone can answer and is also familiar with those IDEs, please use them for comparison.
Thanks, Bogdan
What I've already done:
- Got the sources from a zip package (http://ftp.otrs.org/pub/otrs/otrs-3.1.9.zip) because a direct CVS link doesn't work from my organization (port 2401 is blocked).
- Looked over the dev manual ( http://ftp.otrs.org/pub/otrs/doc/doc-admin/3.1/en/pdf/otrs_admin_book.pdf ) and Searched the mailing lists (http://lists.otrs.org/pipermail/dev/) with Google. Couldn't find any references to an IDE.
- Found info about debugging a running OTRS env by enabling a debug mode where I would get a lot of info logged to files.
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
-- Martin Gruner Senior Developer R&D
OTRS AG Europaring 4 94315 Straubing
T: +49 (0)6172 681988 0 F: +49 (0)9421 56818 18 I: www.otrs.com/
Geschäftssitz: Bad Homburg, Amtsgericht: Bad Homburg, HRB 10751, USt-Nr.: DE256610065 Aufsichtsratsvorsitzender: Burchard Steinbild, Vorstand: André Mindermann (Vorsitzender), Christopher Kuhn, Sabine Riedel
It's raining... OTRS Feature Add-Ons! Bis zu 10 kostenlose OTRS Feature Add-Ons und professionellen Hersteller-Support – Werden Sie jetzt Service-Subscription-Kunde!
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Hi Bogdan, it's been a while :-/. AFAIR (http://www.epic-ide.org/guide/ch06.php), it may not even run inside apache but spawn a local HTTP/CGI server that you can use to run OTRS inside. Just try it. Regards, mg Am 11.09.12 09:26, schrieb Bogdan Iosif:
Hi,
10x. When you tried this, did you have the debugger connect to Apache HTTPD or were you able to somehow execute OTRS's scripts in a more direct way? As far as I understood, the Perl interpreter runs in HTTPD's process, via mod_perl, so a debugger would need to attach to HTTPD in order to work.
I understand your point about not practically needing the above, but it would give me a warm fuzzy feeling to see it working and know I can do that for the worst case scenario.
/bogdan
On Tue, Sep 11, 2012 at 10:12 AM, Martin Gruner
wrote: Hi Bogdan,
AFAICT you can use Eclipse with the EPIC perl editor that also includes a graphical interface to the Perl debugger, giving you full execution control. I tried that once, but as Mike said it is not really needed in everyday work.
Best regards, mg
Am 11.09.12 09:09, schrieb Bogdan Iosif:
Thanks for the input.
I was "afraid" of that. I'm familiar with this type of debugging from writing shell scripts running under Jenkins but I've never done debugging like that for a code base as large as OTRS seems to be.
With shell scripts it was, kind of, simple to assess if the code is valid because I knew exactly where the script will be invoked from and my only concern was to explore the context of the call (mainly env vars). With these Perl scrips, without an IDE that halts execution on a breakpoint or a possibility to statically explore all callers on an object's method, I find it hard to imagine how I can ensure a change I make on some of the code OTRS ships with will not break some code paths or, worse, produce undesirable side effects.
I assume you mean Apache HTTPD's STDERR. I'll try to setup Fred. I hope this info is still valid ( http://lists.otrs.org/pipermail/dev/2007-October/001728.html) because I haven't found much else in the form of a guide on how to use / install it=
-- Martin Gruner Senior Developer R&D OTRS AG Europaring 4 94315 Straubing T: +49 (0)6172 681988 0 F: +49 (0)9421 56818 18 I: www.otrs.com/ Geschäftssitz: Bad Homburg, Amtsgericht: Bad Homburg, HRB 10751, USt-Nr.: DE256610065 Aufsichtsratsvorsitzender: Burchard Steinbild, Vorstand: André Mindermann (Vorsitzender), Christopher Kuhn, Sabine Riedel It's raining... OTRS Feature Add-Ons! Bis zu 10 kostenlose OTRS Feature Add-Ons und professionellen Hersteller-Support – Werden Sie jetzt Service-Subscription-Kunde!

Thanks, I'll look into it. Apache vs private HTTP/CGI server is the
difference I was curious about but I hope will manage to clarify it from
the guide as it was also recommended from another direction.
On Tue, Sep 11, 2012 at 10:50 AM, Martin Gruner
Hi Bogdan,
it's been a while :-/. AFAIR (http://www.epic-ide.org/guide/ch06.php), it may not even run inside apache but spawn a local HTTP/CGI server that you can use to run OTRS inside. Just try it.
Regards, mg
Am 11.09.12 09:26, schrieb Bogdan Iosif:
Hi,
10x. When you tried this, did you have the debugger connect to Apache HTTPD or were you able to somehow execute OTRS's scripts in a more direct way? As far as I understood, the Perl interpreter runs in HTTPD's process, via mod_perl, so a debugger would need to attach to HTTPD in order to work.
I understand your point about not practically needing the above, but it would give me a warm fuzzy feeling to see it working and know I can do that for the worst case scenario.
/bogdan
On Tue, Sep 11, 2012 at 10:12 AM, Martin Gruner
Hi Bogdan,
AFAICT you can use Eclipse with the EPIC perl editor that also includes a graphical interface to the Perl debugger, giving you full execution control. I tried that once, but as Mike said it is not really needed in everyday work.
Best regards, mg
Am 11.09.12 09:09, schrieb Bogdan Iosif:
Thanks for the input.
I was "afraid" of that. I'm familiar with this type of debugging from writing shell scripts running under Jenkins but I've never done debugging like that for a code base as large as OTRS seems to be.
With shell scripts it was, kind of, simple to assess if the code is valid because I knew exactly where the script will be invoked from and my only concern was to explore the context of the call (mainly env vars). With these Perl scrips, without an IDE that halts execution on a breakpoint or a possibility to statically explore all callers on an object's method, I find it hard to imagine how I can ensure a change I make on some of the code OTRS ships with will not break some code paths or, worse, produce undesirable side effects.
I assume you mean Apache HTTPD's STDERR. I'll try to setup Fred. I hope this info is still valid ( http://lists.otrs.org/pipermail/dev/2007-October/001728.html) because I haven't found much else in the form of a guide on how to use / install it=
-- Martin Gruner Senior Developer R&D
OTRS AG Europaring 4 94315 Straubing
T: +49 (0)6172 681988 0 F: +49 (0)9421 56818 18 I: www.otrs.com/
Geschäftssitz: Bad Homburg, Amtsgericht: Bad Homburg, HRB 10751, USt-Nr.: DE256610065 Aufsichtsratsvorsitzender: Burchard Steinbild, Vorstand: André Mindermann (Vorsitzender), Christopher Kuhn, Sabine Riedel
It's raining... OTRS Feature Add-Ons! Bis zu 10 kostenlose OTRS Feature Add-Ons und professionellen Hersteller-Support – Werden Sie jetzt Service-Subscription-Kunde!
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Hello, following this guide I was able to debug OTRS. http://www.epic-ide.org/downloads/EPIC_User's_Guide.pdf http://www.epic-ide.org/downloads/EPIC_User%27s_Guide.pdf I agree that it is important to have a debugging because perl has a number of environment variables difficult to know the contents of the trace or with logs or other Bye Rocco Il 11/09/2012 9.09, Bogdan Iosif ha scritto:
Thanks for the input.
I was "afraid" of that. I'm familiar with this type of debugging from writing shell scripts running under Jenkins but I've never done debugging like that for a code base as large as OTRS seems to be.
With shell scripts it was, kind of, simple to assess if the code is valid because I knew exactly where the script will be invoked from and my only concern was to explore the context of the call (mainly env vars). With these Perl scrips, without an IDE that halts execution on a breakpoint or a possibility to statically explore all callers on an object's method, I find it hard to imagine how I can ensure a change I make on some of the code OTRS ships with will not break some code paths or, worse, produce undesirable side effects.
I assume you mean Apache HTTPD's STDERR. I'll try to setup Fred. I hope this info is still valid (http://lists.otrs.org/pipermail/dev/2007-October/001728.html) because I haven't found much else in the form of a guide on how to use / install it.
/bogdan
On Mon, Sep 10, 2012 at 12:40 PM, Michiel Beijen
mailto:michiel.beijen@gmail.com> wrote: Hi,
Setting up the 'dev' environment is pretty much the same as setting up a 'regular' OTRS environment; you would set up an OTRS environment including database and web server on your local machine.
For editing the files you can use pretty much any editor, some people use complete IDE's such as ActiveState's Komodo IDE, Eclipse EPIC or similar, or Padre, some people prefer to use text editors such as vim with lots of plugins, or even simply Notepad++.
If you do OTRS development you typically do not use a debugger all day; and inspecting elements can be achieved by printing them to STDERR and looking in the server error log and/or using Fred (http://ftp.otrs.org/pub/otrs/develtools/packages/); or by logging them to the LogObject in OTRS.
Hope this helps.
-- Mike
On Mon, Sep 10, 2012 at 11:12 AM, Bogdan Iosif
mailto:bogdan.iosif@gmail.com> wrote: > Hi, > > I'm trying to setup a dev env for OTRS on Windows and I'm new to Perl. After > some poking around for a few days trying to understand Perl distributions > and development, I'm still pretty much where I started. > > If a guide for setting up a specific dev env is available, can someone > please provide me with its URL? > > If such a guide is not available, please help with the following direct > questions: > > Is OTRS dev normally done via an IDE, and if so what is the preferred one? I > tried to find an ide-project like grouping in the OTRS sources and couldn't > spot one. > Is it possible to load all the source files in an editor capable of finding > method / object definitions? (I don't mean full text search but something > like Intellisense) > Is interactive debugging possible for OTRS? By this I mean setting > breakpoints and exploring values for variables when a breakpoint is hit. > Is there such a thing as syntax check, source compilation or unit testing so > that I can be as sure as possible that changes I've made do not immediately > crash when they are executed? > > I'm familiar with the dev workflow from Visual Studio (C#) and Eclipse > (Java) and hoping to achieve something similar with OTRS, if possible. If > someone can answer and is also familiar with those IDEs, please use them for > comparison. > > Thanks, > Bogdan > > What I've already done: > > - Got the sources from a zip package > (http://ftp.otrs.org/pub/otrs/otrs-3.1.9.zip) because a direct CVS link > doesn't work from my organization (port 2401 is blocked). > > - Looked over the dev manual > (http://ftp.otrs.org/pub/otrs/doc/doc-admin/3.1/en/pdf/otrs_admin_book.pdf) > and Searched the mailing lists (http://lists.otrs.org/pipermail/dev/) with > Google. Couldn't find any references to an IDE. > > - Found info about debugging a running OTRS env by enabling a debug mode > where I would get a lot of info logged to files. > > _______________________________________________ > OTRS mailing list: dev - Webpage: http://otrs.org/ > Archive: http://lists.otrs.org/pipermail/dev > To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev _______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev _______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
-- Rocco Tocci Application Architect Strada Prov. 1 BariModugno n. 4 70123 Bari Italy Tel. +39 0803855483 TBS IT -- Telematic & Biomedical Services Srl a socio unico Sede Legale : Via Giacinto Gallina, 4 -- 34122 Trieste Tel. 040 - 92291 Sede Operativa : Via Francesco Bettini, 13 -- 06034 Foligno Tel. 0742- 32661 C.F., P.IVA e Registro Imprese (TS) : 01165260322 Cap.Soc. EUR 8.000.000,00 i.v. una società di TBS Group SpA Ai sensi del D.Lgs. 196/2003 e della normativa internazionale, vi informiamo che questo messaggio è riservato esclusivamente al destinatario. Se esso vi fosse pervenuto per errore, vi invitiamo a eliminarlo immediatamente e a darcene comunicazione. Grazie. According to the Italian and international laws in force, we inform you that this message is reserved only for the addressee. If you are not the addressee, please delete it immediately and notify us. Thank you. P Per favore, pensa all'ambiente prima di stampare questo messaggio. Please, consider the environment before printing this e-mail.

Thanks, I'll look into it.
On Tue, Sep 11, 2012 at 10:40 AM, Rocco Tocci
Hello, following this guide I was able to debug OTRS.
http://www.epic-ide.org/downloads/EPIC_User's_Guide.pdf
I agree that it is important to have a debugging because perl has a number of environment variables difficult to know the contents of the trace or with logs or other
Bye Rocco
Il 11/09/2012 9.09, Bogdan Iosif ha scritto:
Thanks for the input.
I was "afraid" of that. I'm familiar with this type of debugging from writing shell scripts running under Jenkins but I've never done debugging like that for a code base as large as OTRS seems to be.
With shell scripts it was, kind of, simple to assess if the code is valid because I knew exactly where the script will be invoked from and my only concern was to explore the context of the call (mainly env vars). With these Perl scrips, without an IDE that halts execution on a breakpoint or a possibility to statically explore all callers on an object's method, I find it hard to imagine how I can ensure a change I make on some of the code OTRS ships with will not break some code paths or, worse, produce undesirable side effects.
I assume you mean Apache HTTPD's STDERR. I'll try to setup Fred. I hope this info is still valid ( http://lists.otrs.org/pipermail/dev/2007-October/001728.html) because I haven't found much else in the form of a guide on how to use / install it.
/bogdan
On Mon, Sep 10, 2012 at 12:40 PM, Michiel Beijen
wrote:
Hi,
Setting up the 'dev' environment is pretty much the same as setting up a 'regular' OTRS environment; you would set up an OTRS environment including database and web server on your local machine.
For editing the files you can use pretty much any editor, some people use complete IDE's such as ActiveState's Komodo IDE, Eclipse EPIC or similar, or Padre, some people prefer to use text editors such as vim with lots of plugins, or even simply Notepad++.
If you do OTRS development you typically do not use a debugger all day; and inspecting elements can be achieved by printing them to STDERR and looking in the server error log and/or using Fred (http://ftp.otrs.org/pub/otrs/develtools/packages/); or by logging them to the LogObject in OTRS.
Hope this helps.
-- Mike
On Mon, Sep 10, 2012 at 11:12 AM, Bogdan Iosif
wrote: Hi,
I'm trying to setup a dev env for OTRS on Windows and I'm new to Perl. After some poking around for a few days trying to understand Perl distributions and development, I'm still pretty much where I started.
If a guide for setting up a specific dev env is available, can someone please provide me with its URL?
If such a guide is not available, please help with the following direct questions:
Is OTRS dev normally done via an IDE, and if so what is the preferred one? I tried to find an ide-project like grouping in the OTRS sources and couldn't spot one. Is it possible to load all the source files in an editor capable of finding method / object definitions? (I don't mean full text search but something like Intellisense) Is interactive debugging possible for OTRS? By this I mean setting breakpoints and exploring values for variables when a breakpoint is hit. Is there such a thing as syntax check, source compilation or unit testing so that I can be as sure as possible that changes I've made do not immediately crash when they are executed?
I'm familiar with the dev workflow from Visual Studio (C#) and Eclipse (Java) and hoping to achieve something similar with OTRS, if possible. If someone can answer and is also familiar with those IDEs, please use them for comparison.
Thanks, Bogdan
What I've already done:
- Got the sources from a zip package (http://ftp.otrs.org/pub/otrs/otrs-3.1.9.zip) because a direct CVS link doesn't work from my organization (port 2401 is blocked).
- Looked over the dev manual ( http://ftp.otrs.org/pub/otrs/doc/doc-admin/3.1/en/pdf/otrs_admin_book.pdf) and Searched the mailing lists (http://lists.otrs.org/pipermail/dev/) with Google. Couldn't find any references to an IDE.
- Found info about debugging a running OTRS env by enabling a debug mode where I would get a lot of info logged to files.
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
-- Rocco Tocci Application Architect Strada Prov. 1 BariModugno n. 4 70123 Bari Italy Tel. +39 0803855483
TBS IT – Telematic & Biomedical Services Srl a socio unico Sede Legale : Via Giacinto Gallina, 4 – 34122 Trieste Tel. 040 - 92291 Sede Operativa : Via Francesco Bettini, 13 – 06034 Foligno Tel. 0742- 32661 C.F., P.IVA e Registro Imprese (TS) : 01165260322 Cap.Soc. € 8.000.000,00 i.v. una società di TBS Group SpA
Ai sensi del D.Lgs. 196/2003 e della normativa internazionale, vi informiamo che questo messaggio è riservato esclusivamente al destinatario. Se esso vi fosse pervenuto per errore, vi invitiamo a eliminarlo immediatamente e a darcene comunicazione. Grazie. According to the Italian and international laws in force, we inform you that this message is reserved only for the addressee. If you are not the addressee, please delete it immediately and notify us. Thank you. P Per favore, pensa all'ambiente prima di stampare questo messaggio. Please, consider the environment before printing this e-mail.
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Hello Iosif, i hope to help I took a doc that I realized, after a hard work, which describes the steps necessary to get to debugging modules of OTRS in ECLIPSE whith EPIC. I'm sorry but the doc is the automatic translation of google (Italian-> English). Goo Take this opportunity to ask if anyone has implemented or has been required to develop code to integrate in ITSM data OCS Inventory (especially accuntinfo of OCS) Bye Rocco I attach a doc that I realized, after a hard work, which describes the steps necessary to get to debugging modules OTRS. I'm sorry but the doc is the automatic translation of google (Italian-> English) Hello Il 11/09/2012 9.56, Bogdan Iosif ha scritto:
Thanks, I'll look into it.
On Tue, Sep 11, 2012 at 10:40 AM, Rocco Tocci
mailto:rocco.tocci@tbsit.com> wrote: Hello, following this guide I was able to debug OTRS.
http://www.epic-ide.org/downloads/EPIC_User's_Guide.pdf http://www.epic-ide.org/downloads/EPIC_User%27s_Guide.pdf
I agree that it is important to have a debugging because perl has a number of environment variables difficult to know the contents of the trace or with logs or other
Bye Rocco
Il 11/09/2012 9.09, Bogdan Iosif ha scritto:
Thanks for the input.
I was "afraid" of that. I'm familiar with this type of debugging from writing shell scripts running under Jenkins but I've never done debugging like that for a code base as large as OTRS seems to be.
With shell scripts it was, kind of, simple to assess if the code is valid because I knew exactly where the script will be invoked from and my only concern was to explore the context of the call (mainly env vars). With these Perl scrips, without an IDE that halts execution on a breakpoint or a possibility to statically explore all callers on an object's method, I find it hard to imagine how I can ensure a change I make on some of the code OTRS ships with will not break some code paths or, worse, produce undesirable side effects.
I assume you mean Apache HTTPD's STDERR. I'll try to setup Fred. I hope this info is still valid (http://lists.otrs.org/pipermail/dev/2007-October/001728.html) because I haven't found much else in the form of a guide on how to use / install it.
/bogdan
On Mon, Sep 10, 2012 at 12:40 PM, Michiel Beijen
mailto:michiel.beijen@gmail.com> wrote: Hi,
Setting up the 'dev' environment is pretty much the same as setting up a 'regular' OTRS environment; you would set up an OTRS environment including database and web server on your local machine.
For editing the files you can use pretty much any editor, some people use complete IDE's such as ActiveState's Komodo IDE, Eclipse EPIC or similar, or Padre, some people prefer to use text editors such as vim with lots of plugins, or even simply Notepad++.
If you do OTRS development you typically do not use a debugger all day; and inspecting elements can be achieved by printing them to STDERR and looking in the server error log and/or using Fred (http://ftp.otrs.org/pub/otrs/develtools/packages/); or by logging them to the LogObject in OTRS.
Hope this helps.
-- Mike
On Mon, Sep 10, 2012 at 11:12 AM, Bogdan Iosif
mailto:bogdan.iosif@gmail.com> wrote: > Hi, > > I'm trying to setup a dev env for OTRS on Windows and I'm new to Perl. After > some poking around for a few days trying to understand Perl distributions > and development, I'm still pretty much where I started. > > If a guide for setting up a specific dev env is available, can someone > please provide me with its URL? > > If such a guide is not available, please help with the following direct > questions: > > Is OTRS dev normally done via an IDE, and if so what is the preferred one? I > tried to find an ide-project like grouping in the OTRS sources and couldn't > spot one. > Is it possible to load all the source files in an editor capable of finding > method / object definitions? (I don't mean full text search but something > like Intellisense) > Is interactive debugging possible for OTRS? By this I mean setting > breakpoints and exploring values for variables when a breakpoint is hit. > Is there such a thing as syntax check, source compilation or unit testing so > that I can be as sure as possible that changes I've made do not immediately > crash when they are executed? > > I'm familiar with the dev workflow from Visual Studio (C#) and Eclipse > (Java) and hoping to achieve something similar with OTRS, if possible. If > someone can answer and is also familiar with those IDEs, please use them for > comparison. > > Thanks, > Bogdan > > What I've already done: > > - Got the sources from a zip package > (http://ftp.otrs.org/pub/otrs/otrs-3.1.9.zip) because a direct CVS link > doesn't work from my organization (port 2401 is blocked). > > - Looked over the dev manual > (http://ftp.otrs.org/pub/otrs/doc/doc-admin/3.1/en/pdf/otrs_admin_book.pdf) > and Searched the mailing lists (http://lists.otrs.org/pipermail/dev/) with > Google. Couldn't find any references to an IDE. > > - Found info about debugging a running OTRS env by enabling a debug mode > where I would get a lot of info logged to files. > > _______________________________________________ > OTRS mailing list: dev - Webpage: http://otrs.org/ > Archive: http://lists.otrs.org/pipermail/dev > To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev _______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev _______________________________________________ OTRS mailing list: dev - Webpage:http://otrs.org/ Archive:http://lists.otrs.org/pipermail/dev To unsubscribe:http://lists.otrs.org/cgi-bin/listinfo/dev
-- Rocco Tocci Application Architect Strada Prov. 1 BariModugno n. 4 70123 Bari Italy Tel.+39 0803855483 tel:%2B39%200803855483
TBS IT -- Telematic & Biomedical Services Srl a socio unico Sede Legale : Via Giacinto Gallina, 4 -- 34122 Trieste Tel. 040 - 92291 Sede Operativa : Via Francesco Bettini, 13 -- 06034 Foligno Tel. 0742- 32661 C.F., P.IVA e Registro Imprese (TS) : 01165260322 Cap.Soc. EUR 8.000.000,00 i.v. una società di TBS Group SpA
Ai sensi del D.Lgs. 196/2003 e della normativa internazionale, vi informiamo che questo messaggio è riservato esclusivamente al destinatario. Se esso vi fosse pervenuto per errore, vi invitiamo a eliminarlo immediatamente e a darcene comunicazione. Grazie. According to the Italian and international laws in force, we inform you that this message is reserved only for the addressee. If you are not the addressee, please delete it immediately and notify us. Thank you. P Per favore, pensa all'ambiente prima di stampare questo messaggio. Please, consider the environment before printing this e-mail.
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
-- Rocco Tocci Application Architect Strada Prov. 1 BariModugno n. 4 70123 Bari Italy Tel. +39 0803855483 TBS IT -- Telematic & Biomedical Services Srl a socio unico Sede Legale : Via Giacinto Gallina, 4 -- 34122 Trieste Tel. 040 - 92291 Sede Operativa : Via Francesco Bettini, 13 -- 06034 Foligno Tel. 0742- 32661 C.F., P.IVA e Registro Imprese (TS) : 01165260322 Cap.Soc. EUR 8.000.000,00 i.v. una società di TBS Group SpA Ai sensi del D.Lgs. 196/2003 e della normativa internazionale, vi informiamo che questo messaggio è riservato esclusivamente al destinatario. Se esso vi fosse pervenuto per errore, vi invitiamo a eliminarlo immediatamente e a darcene comunicazione. Grazie. According to the Italian and international laws in force, we inform you that this message is reserved only for the addressee. If you are not the addressee, please delete it immediately and notify us. Thank you. P Per favore, pensa all'ambiente prima di stampare questo messaggio. Please, consider the environment before printing this e-mail.

Looks great and it's mostly readable. Molte grazie!
I have one question about step 1 :) It seems to say to NOT install in a
directory with a blank space in its path but then it recommends a path
under "Program Files", which has a space between "Program" and "Files".
Is it ok to install in "C:\Program Files" even though there is a space
there?
On Tue, Sep 11, 2012 at 11:45 AM, Rocco Tocci
Hello Iosif, i hope to help I took a doc that I realized, after a hard work, which describes the steps necessary to get to debugging modules of OTRS in ECLIPSE whith EPIC. I'm sorry but the doc is the automatic translation of google (Italian-> English). Goo
Take this opportunity to ask if anyone has implemented or has been required to develop code to integrate in ITSM data OCS Inventory (especially accuntinfo of OCS)
Bye Rocco
I attach a doc that I realized, after a hard work, which describes the steps necessary to get to debugging modules OTRS. I'm sorry but the doc is the automatic translation of google (Italian-> English) Hello
Il 11/09/2012 9.56, Bogdan Iosif ha scritto:
Thanks, I'll look into it.
On Tue, Sep 11, 2012 at 10:40 AM, Rocco Tocci
wrote: Hello, following this guide I was able to debug OTRS.
http://www.epic-ide.org/downloads/EPIC_User's_Guide.pdf
I agree that it is important to have a debugging because perl has a number of environment variables difficult to know the contents of the trace or with logs or other
Bye Rocco
Il 11/09/2012 9.09, Bogdan Iosif ha scritto:
Thanks for the input.
I was "afraid" of that. I'm familiar with this type of debugging from writing shell scripts running under Jenkins but I've never done debugging like that for a code base as large as OTRS seems to be.
With shell scripts it was, kind of, simple to assess if the code is valid because I knew exactly where the script will be invoked from and my only concern was to explore the context of the call (mainly env vars). With these Perl scrips, without an IDE that halts execution on a breakpoint or a possibility to statically explore all callers on an object's method, I find it hard to imagine how I can ensure a change I make on some of the code OTRS ships with will not break some code paths or, worse, produce undesirable side effects.
I assume you mean Apache HTTPD's STDERR. I'll try to setup Fred. I hope this info is still valid ( http://lists.otrs.org/pipermail/dev/2007-October/001728.html) because I haven't found much else in the form of a guide on how to use / install it.
/bogdan
On Mon, Sep 10, 2012 at 12:40 PM, Michiel Beijen
wrote:
Hi,
Setting up the 'dev' environment is pretty much the same as setting up a 'regular' OTRS environment; you would set up an OTRS environment including database and web server on your local machine.
For editing the files you can use pretty much any editor, some people use complete IDE's such as ActiveState's Komodo IDE, Eclipse EPIC or similar, or Padre, some people prefer to use text editors such as vim with lots of plugins, or even simply Notepad++.
If you do OTRS development you typically do not use a debugger all day; and inspecting elements can be achieved by printing them to STDERR and looking in the server error log and/or using Fred (http://ftp.otrs.org/pub/otrs/develtools/packages/); or by logging them to the LogObject in OTRS.
Hope this helps.
-- Mike
On Mon, Sep 10, 2012 at 11:12 AM, Bogdan Iosif
wrote: Hi,
I'm trying to setup a dev env for OTRS on Windows and I'm new to Perl. After some poking around for a few days trying to understand Perl distributions and development, I'm still pretty much where I started.
If a guide for setting up a specific dev env is available, can someone please provide me with its URL?
If such a guide is not available, please help with the following direct questions:
Is OTRS dev normally done via an IDE, and if so what is the preferred one? I tried to find an ide-project like grouping in the OTRS sources and couldn't spot one. Is it possible to load all the source files in an editor capable of finding method / object definitions? (I don't mean full text search but something like Intellisense) Is interactive debugging possible for OTRS? By this I mean setting breakpoints and exploring values for variables when a breakpoint is hit. Is there such a thing as syntax check, source compilation or unit testing so that I can be as sure as possible that changes I've made do not immediately crash when they are executed?
I'm familiar with the dev workflow from Visual Studio (C#) and Eclipse (Java) and hoping to achieve something similar with OTRS, if possible. If someone can answer and is also familiar with those IDEs, please use them for comparison.
Thanks, Bogdan
What I've already done:
- Got the sources from a zip package (http://ftp.otrs.org/pub/otrs/otrs-3.1.9.zip) because a direct CVS link doesn't work from my organization (port 2401 is blocked).
- Looked over the dev manual ( http://ftp.otrs.org/pub/otrs/doc/doc-admin/3.1/en/pdf/otrs_admin_book.pdf) and Searched the mailing lists (http://lists.otrs.org/pipermail/dev/) with Google. Couldn't find any references to an IDE.
- Found info about debugging a running OTRS env by enabling a debug mode where I would get a lot of info logged to files.
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
-- Rocco Tocci Application Architect Strada Prov. 1 BariModugno n. 4 70123 Bari Italy Tel. +39 0803855483
TBS IT – Telematic & Biomedical Services Srl a socio unico Sede Legale : Via Giacinto Gallina, 4 – 34122 Trieste Tel. 040 - 92291 Sede Operativa : Via Francesco Bettini, 13 – 06034 Foligno Tel. 0742- 32661 C.F., P.IVA e Registro Imprese (TS) : 01165260322 Cap.Soc. € 8.000.000,00 i.v. una società di TBS Group SpA
Ai sensi del D.Lgs. 196/2003 e della normativa internazionale, vi informiamo che questo messaggio è riservato esclusivamente al destinatario. Se esso vi fosse pervenuto per errore, vi invitiamo a eliminarlo immediatamente e a darcene comunicazione. Grazie. According to the Italian and international laws in force, we inform you that this message is reserved only for the addressee. If you are not the addressee, please delete it immediately and notify us. Thank you. P Per favore, pensa all'ambiente prima di stampare questo messaggio. Please, consider the environment before printing this e-mail.
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
-- Rocco Tocci Application Architect Strada Prov. 1 BariModugno n. 4 70123 Bari Italy Tel. +39 0803855483
TBS IT – Telematic & Biomedical Services Srl a socio unico Sede Legale : Via Giacinto Gallina, 4 – 34122 Trieste Tel. 040 - 92291 Sede Operativa : Via Francesco Bettini, 13 – 06034 Foligno Tel. 0742- 32661 C.F., P.IVA e Registro Imprese (TS) : 01165260322 Cap.Soc. € 8.000.000,00 i.v. una società di TBS Group SpA
Ai sensi del D.Lgs. 196/2003 e della normativa internazionale, vi informiamo che questo messaggio è riservato esclusivamente al destinatario. Se esso vi fosse pervenuto per errore, vi invitiamo a eliminarlo immediatamente e a darcene comunicazione. Grazie. According to the Italian and international laws in force, we inform you that this message is reserved only for the addressee. If you are not the addressee, please delete it immediately and notify us. Thank you. P Per favore, pensa all'ambiente prima di stampare questo messaggio. Please, consider the environment before printing this e-mail.
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Yes is OK Il 11/09/2012 11.04, Bogdan Iosif ha scritto:
Looks great and it's mostly readable. Molte grazie!
I have one question about step 1 :) It seems to say to NOT install in a directory with a blank space in its path but then it recommends a path under "Program Files", which has a space between "Program" and "Files".
Is it ok to install in "C:\Program Files" even though there is a space there?
On Tue, Sep 11, 2012 at 11:45 AM, Rocco Tocci
mailto:rocco.tocci@tbsit.com> wrote: Hello Iosif, i hope to help I took a doc that I realized, after a hard work, which describes the steps necessary to get to debugging modules of OTRS in ECLIPSE whith EPIC. I'm sorry but the doc is the automatic translation of google (Italian-> English). Goo
Take this opportunity to ask if anyone has implemented or has been required to develop code to integrate in ITSM data OCS Inventory (especially accuntinfo of OCS)
Bye Rocco
I attach a doc that I realized, after a hard work, which describes the steps necessary to get to debugging modules OTRS. I'm sorry but the doc is the automatic translation of google (Italian-> English) Hello
Il 11/09/2012 9.56, Bogdan Iosif ha scritto:
Thanks, I'll look into it.
On Tue, Sep 11, 2012 at 10:40 AM, Rocco Tocci
mailto:rocco.tocci@tbsit.com> wrote: Hello, following this guide I was able to debug OTRS.
http://www.epic-ide.org/downloads/EPIC_User's_Guide.pdf http://www.epic-ide.org/downloads/EPIC_User%27s_Guide.pdf
I agree that it is important to have a debugging because perl has a number of environment variables difficult to know the contents of the trace or with logs or other
Bye Rocco
Il 11/09/2012 9.09, Bogdan Iosif ha scritto:
Thanks for the input.
I was "afraid" of that. I'm familiar with this type of debugging from writing shell scripts running under Jenkins but I've never done debugging like that for a code base as large as OTRS seems to be.
With shell scripts it was, kind of, simple to assess if the code is valid because I knew exactly where the script will be invoked from and my only concern was to explore the context of the call (mainly env vars). With these Perl scrips, without an IDE that halts execution on a breakpoint or a possibility to statically explore all callers on an object's method, I find it hard to imagine how I can ensure a change I make on some of the code OTRS ships with will not break some code paths or, worse, produce undesirable side effects.
I assume you mean Apache HTTPD's STDERR. I'll try to setup Fred. I hope this info is still valid (http://lists.otrs.org/pipermail/dev/2007-October/001728.html) because I haven't found much else in the form of a guide on how to use / install it.
/bogdan
On Mon, Sep 10, 2012 at 12:40 PM, Michiel Beijen
mailto:michiel.beijen@gmail.com> wrote: Hi,
Setting up the 'dev' environment is pretty much the same as setting up a 'regular' OTRS environment; you would set up an OTRS environment including database and web server on your local machine.
For editing the files you can use pretty much any editor, some people use complete IDE's such as ActiveState's Komodo IDE, Eclipse EPIC or similar, or Padre, some people prefer to use text editors such as vim with lots of plugins, or even simply Notepad++.
If you do OTRS development you typically do not use a debugger all day; and inspecting elements can be achieved by printing them to STDERR and looking in the server error log and/or using Fred (http://ftp.otrs.org/pub/otrs/develtools/packages/); or by logging them to the LogObject in OTRS.
Hope this helps.
-- Mike
On Mon, Sep 10, 2012 at 11:12 AM, Bogdan Iosif
mailto:bogdan.iosif@gmail.com> wrote: > Hi, > > I'm trying to setup a dev env for OTRS on Windows and I'm new to Perl. After > some poking around for a few days trying to understand Perl distributions > and development, I'm still pretty much where I started. > > If a guide for setting up a specific dev env is available, can someone > please provide me with its URL? > > If such a guide is not available, please help with the following direct > questions: > > Is OTRS dev normally done via an IDE, and if so what is the preferred one? I > tried to find an ide-project like grouping in the OTRS sources and couldn't > spot one. > Is it possible to load all the source files in an editor capable of finding > method / object definitions? (I don't mean full text search but something > like Intellisense) > Is interactive debugging possible for OTRS? By this I mean setting > breakpoints and exploring values for variables when a breakpoint is hit. > Is there such a thing as syntax check, source compilation or unit testing so > that I can be as sure as possible that changes I've made do not immediately > crash when they are executed? > > I'm familiar with the dev workflow from Visual Studio (C#) and Eclipse > (Java) and hoping to achieve something similar with OTRS, if possible. If > someone can answer and is also familiar with those IDEs, please use them for > comparison. > > Thanks, > Bogdan > > What I've already done: > > - Got the sources from a zip package > (http://ftp.otrs.org/pub/otrs/otrs-3.1.9.zip) because a direct CVS link > doesn't work from my organization (port 2401 is blocked). > > - Looked over the dev manual > (http://ftp.otrs.org/pub/otrs/doc/doc-admin/3.1/en/pdf/otrs_admin_book.pdf) > and Searched the mailing lists (http://lists.otrs.org/pipermail/dev/) with > Google. Couldn't find any references to an IDE. > > - Found info about debugging a running OTRS env by enabling a debug mode > where I would get a lot of info logged to files. > > _______________________________________________ > OTRS mailing list: dev - Webpage: http://otrs.org/ > Archive: http://lists.otrs.org/pipermail/dev > To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev _______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev _______________________________________________ OTRS mailing list: dev - Webpage:http://otrs.org/ Archive:http://lists.otrs.org/pipermail/dev To unsubscribe:http://lists.otrs.org/cgi-bin/listinfo/dev
-- Rocco Tocci Application Architect Strada Prov. 1 BariModugno n. 4 70123 Bari Italy Tel.+39 0803855483 tel:%2B39%200803855483
TBS IT -- Telematic & Biomedical Services Srl a socio unico Sede Legale : Via Giacinto Gallina, 4 -- 34122 Trieste Tel. 040 - 92291 Sede Operativa : Via Francesco Bettini, 13 -- 06034 Foligno Tel. 0742- 32661 C.F., P.IVA e Registro Imprese (TS) : 01165260322 Cap.Soc. EUR 8.000.000,00 i.v. una società di TBS Group SpA
Ai sensi del D.Lgs. 196/2003 e della normativa internazionale, vi informiamo che questo messaggio è riservato esclusivamente al destinatario. Se esso vi fosse pervenuto per errore, vi invitiamo a eliminarlo immediatamente e a darcene comunicazione. Grazie. According to the Italian and international laws in force, we inform you that this message is reserved only for the addressee. If you are not the addressee, please delete it immediately and notify us. Thank you. P Per favore, pensa all'ambiente prima di stampare questo messaggio. Please, consider the environment before printing this e-mail.
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
_______________________________________________ OTRS mailing list: dev - Webpage:http://otrs.org/ Archive:http://lists.otrs.org/pipermail/dev To unsubscribe:http://lists.otrs.org/cgi-bin/listinfo/dev
-- Rocco Tocci Application Architect Strada Prov. 1 BariModugno n. 4 70123 Bari Italy Tel.+39 0803855483 tel:%2B39%200803855483
TBS IT -- Telematic & Biomedical Services Srl a socio unico Sede Legale : Via Giacinto Gallina, 4 -- 34122 Trieste Tel. 040 - 92291 Sede Operativa : Via Francesco Bettini, 13 -- 06034 Foligno Tel. 0742- 32661 C.F., P.IVA e Registro Imprese (TS) : 01165260322 Cap.Soc. EUR 8.000.000,00 i.v. una società di TBS Group SpA
Ai sensi del D.Lgs. 196/2003 e della normativa internazionale, vi informiamo che questo messaggio è riservato esclusivamente al destinatario. Se esso vi fosse pervenuto per errore, vi invitiamo a eliminarlo immediatamente e a darcene comunicazione. Grazie. According to the Italian and international laws in force, we inform you that this message is reserved only for the addressee. If you are not the addressee, please delete it immediately and notify us. Thank you. P Per favore, pensa all'ambiente prima di stampare questo messaggio. Please, consider the environment before printing this e-mail.
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
-- Rocco Tocci Application Architect Strada Prov. 1 BariModugno n. 4 70123 Bari Italy Tel. +39 0803855483 TBS IT -- Telematic & Biomedical Services Srl a socio unico Sede Legale : Via Giacinto Gallina, 4 -- 34122 Trieste Tel. 040 - 92291 Sede Operativa : Via Francesco Bettini, 13 -- 06034 Foligno Tel. 0742- 32661 C.F., P.IVA e Registro Imprese (TS) : 01165260322 Cap.Soc. EUR 8.000.000,00 i.v. una società di TBS Group SpA Ai sensi del D.Lgs. 196/2003 e della normativa internazionale, vi informiamo che questo messaggio è riservato esclusivamente al destinatario. Se esso vi fosse pervenuto per errore, vi invitiamo a eliminarlo immediatamente e a darcene comunicazione. Grazie. According to the Italian and international laws in force, we inform you that this message is reserved only for the addressee. If you are not the addressee, please delete it immediately and notify us. Thank you. P Per favore, pensa all'ambiente prima di stampare questo messaggio. Please, consider the environment before printing this e-mail.

Rocco Tocci wrote: [...]
Take this opportunity to ask if anyone has implemented or has been required to develop code to integrate in ITSM data OCS Inventory (especially accuntinfo of OCS) [...]
I only know of a published module "OCSInside" to link OCS to OTRS, but without ITSM: http://forums.otterhub.org/viewtopic.php?f=35&t=3059&p=60844&hilit=ocs#p1787... I think this is the best start unless OCS Inventory NG 2.1 is pusblished with an official OTRS plugin - regarding to the roadmap. All others don't seem to publish their effort on OPAR or opmzone.org, for example see: http://www.linkedin.com/groups/has-anyone-here-integrated-OCS-99793.S.120756... http://lists.otrs.org/pipermail/otrs/2008-May/023223.html Regarding ITSM there seems to exist virtually no OTRS developer community. I rarely see answers or code to ITSM questions on the dev list or in the developers forum in contrast to non-ITSM developer questions. There is some ITSM code on OPAR, for example you may look at this free cape IT module to learn from if you have no ITSM development experience: http://opar.perl-services.de/bin/index.cgi/package/C/CA/CAPEIT/ITSM-CIAttrib... Feedback is welcome, especially since I use OCS myself ;) Alexander Public Relations OTRS Community Board / OtterHub e.V. (http://www.otterhub.org/)

Don’t try to map the Java/C# development models onto Perl. Perl really doesn’t benefit much from an IDE, and at least in my shop, the IDE is more work than help, so we don’t use one for Perl code. There is an Eclipse mode for Perl, but it doesn’t really do much. Also, Perl is essentially interpreted, so there’s not a compilation step per se. I find Perl mode in a very large multi-pane Emacs window and a virtual machine running a test copy of OTRS to be the most helpful. A working source control system (choose your religion there; we find subversion to be a useful balance between comprehensibility and power) is essential, as there are zillions of moving parts. You could probably use Visual SourceSafe, but it’s really not all that helpful. Wrt to interactive debugging, the Perl debugger is really most of what you have to work with, but it’s not really helpful in that the various pieces of OTRS interact extensively with Apache and the database, and as such most of the debugging output that will tell you anything useful will be in the database or Apache logs, not in the code itself. Not much, but having various logs displayed in that multipane Emacs environment is helpful. From: dev-bounces@otrs.org [mailto:dev-bounces@otrs.org] On Behalf Of Bogdan Iosif Sent: Monday, September 10, 2012 5:12 AM To: dev@otrs.org Subject: [dev] How can I setup a dev environment for OTRS? Hi, I'm trying to setup a dev env for OTRS on Windows and I'm new to Perl. After some poking around for a few days trying to understand Perl distributions and development, I'm still pretty much where I started. If a guide for setting up a specific dev env is available, can someone please provide me with its URL? If such a guide is not available, please help with the following direct questions: 1. Is OTRS dev normally done via an IDE, and if so what is the preferred one? I tried to find an ide-project like grouping in the OTRS sources and couldn't spot one. 2. Is it possible to load all the source files in an editor capable of finding method / object definitions? (I don't mean full text search but something like Intellisense) 3. Is interactive debugging possible for OTRS? By this I mean setting breakpoints and exploring values for variables when a breakpoint is hit. 4. Is there such a thing as syntax check, source compilation or unit testing so that I can be as sure as possible that changes I've made do not immediately crash when they are executed? I'm familiar with the dev workflow from Visual Studio (C#) and Eclipse (Java) and hoping to achieve something similar with OTRS, if possible. If someone can answer and is also familiar with those IDEs, please use them for comparison. Thanks, Bogdan What I've already done: - Got the sources from a zip package (http://ftp.otrs.org/pub/otrs/otrs-3.1.9.zip) because a direct CVS link doesn't work from my organization (port 2401 is blocked). - Looked over the dev manual (http://ftp.otrs.org/pub/otrs/doc/doc-admin/3.1/en/pdf/otrs_admin_book.pdf) and Searched the mailing lists (http://lists.otrs.org/pipermail/dev/) with Google. Couldn't find any references to an IDE. - Found info about debugging a running OTRS env by enabling a debug mode where I would get a lot of info logged to files.

Hi all,
Well I agree that for Perl you don't get much benefits using a IDE or a very fancy editor, but when you start thinking that OTRS is not just a bunch of Perl code, but also JS, HTML, XML, YAML, CSS, etc. You maybe start thinking that a tool to cover them all should be a good idea, with some syntax highlight and ctrl space suggestions.
Then you maybe want to track bugs in your developments or in OTRS, and also you maybe want to use a versioning system like CVS GIT or SVN, and you are at this point (mostly on a Windows machine) with a full set of tools to help you on each of this tasks, or you can do it with a simple notepad ;-) for sure.
But there is another alternative, I like Eclipse with EPIC (Perl editor) Web Development tools for JS, HTML, XML and CSS, Mylyn to track bugs and the Team providers for CVS, SVN and GIT. (for my daily work its helps me a lot, since I need to always have a updated OTRS CVS checkout before start working) and other plugins (a YAML editor, a WebServices editor, a ShellScript editor, a Sketching editor Regular Expressions helper, etc).
I mean you can even manage your DB within Eclipse (there are at least 2 plug-ins that uses JDBC to access your databases MySQL, PG, etc).
So I think is a matter of likes to use an IDE or not, but for sure I will tell you that have a Dev Env for OTRS in Windows is not the best idea, but if you want / need to have it, try Cygwin, so you can at least have a "tail" command for the apache error log (otherwise you will have to do a lot of refreshes).
Working with VMs is good, but slow and not so much resource efficient (but for sure better than Windows IMHO)
((enjoy))
Carlos Rodríguez
On Sep 10, 2012, at 1:36 PM, David Boyes
Don’t try to map the Java/C# development models onto Perl. Perl really doesn’t benefit much from an IDE, and at least in my shop, the IDE is more work than help, so we don’t use one for Perl code. There is an Eclipse mode for Perl, but it doesn’t really do much. Also, Perl is essentially interpreted, so there’s not a compilation step per se.
I find Perl mode in a very large multi-pane Emacs window and a virtual machine running a test copy of OTRS to be the most helpful. A working source control system (choose your religion there; we find subversion to be a useful balance between comprehensibility and power) is essential, as there are zillions of moving parts. You could probably use Visual SourceSafe, but it’s really not all that helpful.
Wrt to interactive debugging, the Perl debugger is really most of what you have to work with, but it’s not really helpful in that the various pieces of OTRS interact extensively with Apache and the database, and as such most of the debugging output that will tell you anything useful will be in the database or Apache logs, not in the code itself. Not much, but having various logs displayed in that multipane Emacs environment is helpful.
From: dev-bounces@otrs.org [mailto:dev-bounces@otrs.org] On Behalf Of Bogdan Iosif Sent: Monday, September 10, 2012 5:12 AM To: dev@otrs.org Subject: [dev] How can I setup a dev environment for OTRS?
Hi,
I'm trying to setup a dev env for OTRS on Windows and I'm new to Perl. After some poking around for a few days trying to understand Perl distributions and development, I'm still pretty much where I started.
If a guide for setting up a specific dev env is available, can someone please provide me with its URL?
If such a guide is not available, please help with the following direct questions: Is OTRS dev normally done via an IDE, and if so what is the preferred one? I tried to find an ide-project like grouping in the OTRS sources and couldn't spot one. Is it possible to load all the source files in an editor capable of finding method / object definitions? (I don't mean full text search but something like Intellisense) Is interactive debugging possible for OTRS? By this I mean setting breakpoints and exploring values for variables when a breakpoint is hit. Is there such a thing as syntax check, source compilation or unit testing so that I can be as sure as possible that changes I've made do not immediately crash when they are executed? I'm familiar with the dev workflow from Visual Studio (C#) and Eclipse (Java) and hoping to achieve something similar with OTRS, if possible. If someone can answer and is also familiar with those IDEs, please use them for comparison.
Thanks, Bogdan
What I've already done:
- Got the sources from a zip package (http://ftp.otrs.org/pub/otrs/otrs-3.1.9.zip) because a direct CVS link doesn't work from my organization (port 2401 is blocked).
- Looked over the dev manual (http://ftp.otrs.org/pub/otrs/doc/doc-admin/3.1/en/pdf/otrs_admin_book.pdf) and Searched the mailing lists (http://lists.otrs.org/pipermail/dev/) with Google. Couldn't find any references to an IDE.
- Found info about debugging a running OTRS env by enabling a debug mode where I would get a lot of info logged to files. _______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Hi all, Carlos thanks for the input, I also feel strongly about your pros for working from an IDE. I would love to have integrated debugging, I just feel like missing an arm and a leg without it but if I absolutely must, I can get used to working without it (I'm recommended to do so from many directions). Regarding the missing Tail: It's available on Windows, along with many other Unix tools, via the GnuWin project ( http://gnuwin32.sourceforge.net/). There's no need to install Cygwin until you really run out of options or if you have to use Bash. One more thing, with EPIC, were you able to get cross file references to work? For example to jump from one declaration in a file to a definition that is in a different file. David, thanks for your recommendations, I'll consider them strongly as they are aligned with other replies. Could you please tell me if you managed to get the debugger to work by following this guide ( http://www.epic-ide.org/guide/ch06.php)? I'm interested to know it you managed to attach the debugger to Apache HTTPD or if OTRS was ran via some other web server. Please see Martin's and Rocco's replies ( http://lists.otrs.org/pipermail/dev/2012-September/002543.html http://lists.otrs.org/pipermail/dev/2012-September/002542.html) /bogdan On Tue, Sep 11, 2012 at 12:36 AM, Carlos Rodríguez < carlos.rodriguez@otrs.com> wrote:
Hi all,
Well I agree that for Perl you don't get much benefits using a IDE or a very fancy editor, but when you start thinking that OTRS is not just a bunch of Perl code, but also JS, HTML, XML, YAML, CSS, etc. You maybe start thinking that a tool to cover them all should be a good idea, with some syntax highlight and ctrl space suggestions.
Then you maybe want to track bugs in your developments or in OTRS, and also you maybe want to use a versioning system like CVS GIT or SVN, and you are at this point (mostly on a Windows machine) with a full set of tools to help you on each of this tasks, or you can do it with a simple notepad ;-) for sure.
But there is another alternative, I like Eclipse with EPIC (Perl editor) Web Development tools for JS, HTML, XML and CSS, Mylyn to track bugs and the Team providers for CVS, SVN and GIT. (for my daily work its helps me a lot, since I need to always have a updated OTRS CVS checkout before start working) and other plugins (a YAML editor, a WebServices editor, a ShellScript editor, a Sketching editor Regular Expressions helper, etc).
I mean you can even manage your DB within Eclipse (there are at least 2 plug-ins that uses JDBC to access your databases MySQL, PG, etc).
So I think is a matter of likes to use an IDE or not, but for sure I will tell you that have a Dev Env for OTRS in Windows is not the best idea, but if you want / need to have it, try Cygwin, so you can at least have a "tail" command for the apache error log (otherwise you will have to do a lot of refreshes).
Working with VMs is good, but slow and not so much resource efficient (but for sure better than Windows IMHO)
((enjoy))
Carlos Rodríguez
On Sep 10, 2012, at 1:36 PM, David Boyes
wrote: Don’t try to map the Java/C# development models onto Perl. Perl really doesn’t benefit much from an IDE, and at least in my shop, the IDE is more work than help, so we don’t use one for Perl code. There is an Eclipse mode for Perl, but it doesn’t really do much. Also, Perl is essentially interpreted, so there’s not a compilation step per se.****
I find Perl mode in a very large multi-pane Emacs window and a virtual machine running a test copy of OTRS to be the most helpful. A working source control system (choose your religion there; we find subversion to be a useful balance between comprehensibility and power) is essential, as there are zillions of moving parts. You could probably use Visual SourceSafe, but it’s really not all that helpful.****
Wrt to interactive debugging, the Perl debugger is really most of what you have to work with, but it’s not really helpful in that the various pieces of OTRS interact extensively with Apache and the database, and as such most of the debugging output that will tell you anything useful will be in the database or Apache logs, not in the code itself. Not much, but having various logs displayed in that multipane Emacs environment is helpful.****
*From:* dev-bounces@otrs.org [mailto:dev-bounces@otrs.org] *On Behalf Of *Bogdan Iosif *Sent:* Monday, September 10, 2012 5:12 AM *To:* dev@otrs.org *Subject:* [dev] How can I setup a dev environment for OTRS?**** ** ** Hi,
I'm trying to setup a dev env for OTRS on Windows and I'm new to Perl. After some poking around for a few days trying to understand Perl distributions and development, I'm still pretty much where I started.
If a guide for setting up a specific dev env is available, can someone please provide me with its URL?
If such a guide is not available, please help with the following direct questions:****
1. Is OTRS dev normally done via an IDE, and if so what is the preferred one? I tried to find an ide-project like grouping in the OTRS sources and couldn't spot one.**** 2. Is it possible to load all the source files in an editor capable of finding method / object definitions? (I don't mean full text search but something like Intellisense)**** 3. Is interactive debugging possible for OTRS? By this I mean setting breakpoints and exploring values for variables when a breakpoint is hit. **** 4. Is there such a thing as syntax check, source compilation or unit testing so that I can be as sure as possible that changes I've made do not immediately crash when they are executed?****
I'm familiar with the dev workflow from Visual Studio (C#) and Eclipse (Java) and hoping to achieve something similar with OTRS, if possible. If someone can answer and is also familiar with those IDEs, please use them for comparison.
Thanks, Bogdan
What I've already done:
- Got the sources from a zip package ( http://ftp.otrs.org/pub/otrs/otrs-3.1.9.zip) because a direct CVS link doesn't work from my organization (port 2401 is blocked).
- Looked over the dev manual ( http://ftp.otrs.org/pub/otrs/doc/doc-admin/3.1/en/pdf/otrs_admin_book.pdf) and Searched the mailing lists (http://lists.otrs.org/pipermail/dev/) with Google. Couldn't find any references to an IDE.
- Found info about debugging a running OTRS env by enabling a debug mode where I would get a lot of info logged to files.**** _______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev
_______________________________________________ OTRS mailing list: dev - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/dev To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

David, thanks for your recommendations, I'll consider them strongly as they are aligned with other replies. Could you please tell me if you managed to get the debugger to work by following this guide (http://www.epic-ide.org/guide/ch06.php)? I'm interested to know it you managed to attach the debugger to Apache HTTPD or if OTRS was ran via some other web server. Please see Martin's and Rocco's replies (http://lists.otrs.org/pipermail/dev/2012-September/002543.html http://lists.otrs.org/pipermail/dev/2012-September/002542.html) Just tried it. Doesn’t seem to give the ability to trace spawned processes that are not owned by your UID, so I’m not sure if it would be helpful. I can trace the httpd process, but not the subprocesses AFAICT. I’ll keep messing with it for a bit – now you’ve got me intrigued. In our environment (as I mentioned) we test in a separate VM, so a workstation IDE wouldn’t have access to the actual HTTP daemon. (We don’t deploy development tools on copies of production infrastructure as a matter of policy, so we wouldn’t have them in development snapshots either.)

Well I agree that for Perl you don't get much benefits using a IDE or a very fancy editor, but when you start thinking that OTRS is not just a bunch of Perl code, but also JS, HTML, XML, YAML, CSS, etc. You maybe start thinking that a tool to cover them all should be a good idea, with some syntax highlight and ctrl space suggestions. Then you maybe want to track bugs in your developments or in OTRS, and also you maybe want to use a versioning system like CVS GIT or SVN, and you are at this point (mostly on a Windows machine) with a full set of tools to help you on each of this tasks, or you can do it with a simple notepad ;-) for sure. Yeah. I find the Perl mode in Emacs to be quite helpful (the defaults are well-chosen), but that's a) a religious preference, based on, b) 30 years of living in Emacs, and c) not a technical requirement. There are Emacs modes for all those fancy things - syntax highlighting and all that jazz - YMMV. I'd probably also encourage people to do OTRS development on Linux instead of Windows, but that's also a religious issue. It can be done. You'll spend most of your time trying to find good productivity tooling, but if you want to do it on Windows, you can. Working with VMs is good, but slow and not so much resource efficient (but for sure better than Windows IMHO) The main benefit for having a copy of OTRS running in a VM for developers is that you can stop, start, change settings, and break it without bothering anyone else. You can try things (like upgrades) without risking anything important, and run with all debugging turned on (which would make a production instance pretty much unusable, but is invaluable in development). It's worth it's weight in gold, especially if you run your production OTRS in a VM - being able to take a snapshot of the running production system and use that as your development base is really, really handy.
participants (7)
-
Alexander Halle
-
Bogdan Iosif
-
Carlos Rodríguez
-
David Boyes
-
Martin Gruner
-
Michiel Beijen
-
Rocco Tocci