• Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Social Media
    •   @Wings3dOfficial
    •   @Wings3dOfficial
    •   Wings3dOfficial
    •   Wings3dOfficial
  • Register
  • Login
  • Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Register
  • Login
Wings 3D Development Forum Wings 3D Bug Reports v
« Previous 1 … 15 16 17 18 19 … 35 Next »
SVG import more broken than before?

 
  • 0 Vote(s) - 0 Average
SVG import more broken than before?

dgud
Offline

Grumpy Dev
Posts: 692
Threads: 37
Joined: Nov 2012
#3
11-19-2016, 09:47 AM
>I'd like to help debugging this but there's a language barrier (erlang) and absolute ignorance of debugging tools
>for same. I've installed erlang, and am starting a tutorial but I'd appreciate any useful pointers and suggestions!

Erlang is a functional language as: Lisp, Haskell, Closure so it's a bit different than the traditional programming languages, if you have programmed a functional language it will be easy to learn since it is very small, if not it will be different :-)

The best part of Erlang is it's concurrent features, which we don't use much in wings right now, Erlang behaves more like an OS with a lot of processes talking to each other.

The best written docs are here:
http://learnyousomeerlang.com/content

We have a debugger, started with debuggerConfusedtart() from the erlang shell, which don't work with installed wings code since it's stripped of debug info, so you need to compile wings yourself.
Though the debugger is not used as much there are often simpler alternatives to use.

I have written another tool, observer that gives an overview of the running system
> observerConfusedtart().


First print debugging is the one I/we use the most, it's simple because in erlang you can reload code without
re-starting your program.

The basic debug loop is:
start wings
load model
do your command and see what going wrong.

Add io:format("DEBUG ~p", [Info]), in your code
re-compile file/module
load module to running wings: in shell: l(wings_object).
redo command

add io:format() ... repeat

There are scripts that load new compile code automatically when code is changed, which I use: Google says: https://github.com/oinksoft/reloader

There are other ways, we have really good tracing facilities in erlang where you can trace everything, function calls or process created or message sent/received.

You can do tracing from the gui (the observer application) or from the shell see dbg module.
But that is more complex so you have to google those instructions.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Messages In This Thread
SVG import more broken than before? - by jcoppens - 11-18-2016, 06:35 PM
RE: SVG import more broken than before? - by tkbd - 11-19-2016, 12:51 AM
RE: SVG import more broken than before? - by dgud - 11-19-2016, 09:47 AM
RE: SVG import more broken than before? - by dgud - 11-19-2016, 10:01 AM
RE: SVG import more broken than before? - by jcoppens - 11-19-2016, 03:11 PM
RE: SVG import more broken than before? - by dgud - 11-19-2016, 03:52 PM
RE: SVG import more broken than before? - by tkbd - 11-20-2016, 02:55 AM
RE: SVG import more broken than before? - by jcoppens - 11-20-2016, 03:10 PM
RE: SVG import more broken than before? - by oort - 12-06-2016, 08:29 PM
RE: SVG import more broken than before? - by tkbd - 12-07-2016, 11:24 AM
RE: SVG import more broken than before? - by jcoppens - 12-08-2016, 05:34 PM
RE: SVG import more broken than before? - by micheus - 12-08-2016, 10:30 PM
RE: SVG import more broken than before? - by oort - 12-09-2016, 12:05 AM
RE: SVG import more broken than before? - by tkbd - 12-09-2016, 09:11 AM
RE: SVG import more broken than before? - by jcoppens - 12-10-2016, 02:31 PM

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D - Powered by MyBB

Linear Mode
Threaded Mode