Yes, I can debug with VS Code, however the library (code in SWC) is open in JS files and not the AS source code. It's not a huge issue, because the similarities between JS and AS.
Maria Jose Esteve <mjest...@iest.com> escreveu no dia sexta, 20/05/2022 à(s) 23:11: > Hugo, > Can't debug, can you share your asconfig.json? > > Do you have debug=true & sourcemap options? > > Look, this is the asonfig.json of the example project I have published: > > { > "config": "royale", > "type": "lib", > "compilerOptions": { > "debug": true, > "targets": ["JSRoyale"], > "source-path": [ > "src/main/royale", > "../royale-jscalendar/src/main/royale/" > ], > "include-namespaces": [ > "library://ns.apache.org/royale/community" > ], > "namespace": [ > { > "uri": "library://ns.apache.org/royale/community", > "manifest": "src/main/resources/components-manifest.xml" > }, > { > "uri": "library://ns.apache.org/royale/community", > "manifest": > "../royale-jscalendar/src/main/resources/jscalendar-manifest.xml" > } > ], > "include-classes": [ > "ComponentsClasses" > ], > "include-sources": [ > "src/main/royale" > ], > "library-path": [ > "${royalelib}/libs/MXRoyaleBase.swc" > ], > "js-library-path": [ > "${royalelib}/js/libs/MXRoyaleBaseJS.swc" > ], > "source-map": true, > "remove-circulars": true, > "keep-as3-metadata": [ > "Inject", "Dispatcher", "EventHandler", "PostConstruct", > "PreDestroy", "ViewAdded", "ViewRemoved", "Bindable", "Transient" > ], > "js-default-initializers": true, > "output": "target/RoyaleComponentsLib.swc" > }, > "copySourcePathAssets": true, > "additionalOptions": > [//MXRoyale-${royale.framework.version}-js.swc:defaults.css > > //"-compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults.css", > "-js-dynamic-access-unknown-members=true", > "-show-binding-warnings=false" > ] > } > > Hiedra > > -----Mensaje original----- > De: Hugo Ferreira <hferreira...@gmail.com> > Enviado el: sábado, 21 de mayo de 2022 0:01 > Para: Apache Royale Development <dev@royale.apache.org> > Asunto: Royale libraries with JS only > > Hi, > > I was surprised today that I found that I can compile a library (SWC-JS) > with the pure JS version of the framework. > I thought that I needed the SWF+JS version to be able to do that. > That's a great surprise and usefull to split and reuse comum parts of the > code. > > Since a SWC it's a zip file, what's thw reason to use the library.swf > inside of the file ? > I guess that the catalog.xml it's used by IDE (on my case VS Code) ? > > Why not call the file something different like JSL (Java Script Library) > or ARL (Apache Royale Library) ? > > I see that I can easly debug the library with VS Code (that it's expanded > on the application project) but I'm debuging you JS only that's not bad but > would be great if we can debug the AS3/MXML files => Perhaps a new > asconfig.json variable to build with the necessary metadata as source files > to debug. > > Regards, > Hugo. >